KeygraphLabs · CVE MCP

CVE-2018-6342 · facebook

CVE-2018-6342

react-dev-utils on Windows allows developers to run a local webserver for accepting various commands, including a command to launch an editor. The input to that command was not properly sanitized, allowing an attacker who can make a network request to the server (either via CSRF or by direct request) to execute arbitrary commands on the targeted system. This issue affects multiple branches: 1.x.x prior to 1.0.4, 2.x.x prior to 2.0.2, 3.x.x prior to 3.1.2, 4.x.x prior to 4.2.2, and 5.x.x prior to 5.0.2.

Published 2018-12-31, last changed 2026-06-17. Weakness: CWE-78.

CVSS
9.8
critical, from NVD
EPSS
2.84%
percentile 87.2%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: react-dev-utils 1.0.4, 2.0.2, 3.1.2, 4.2.2, 5.0.2 (npm) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in facebook/create-react-app by pull request #4866, 7e25c9a604, f0784fc27f. Functions changed by the fix: launchEditor. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).

Timeline

2018-12-31Published
2019-01-04Package advisory GHSA-29gp-92wp-94q8
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 2.84%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-29gp-92wp-94q8react-dev-utils (npm)1.0.4
GHSA-29gp-92wp-94q8react-dev-utils (npm)2.0.2
GHSA-29gp-92wp-94q8react-dev-utils (npm)3.1.2
GHSA-29gp-92wp-94q8react-dev-utils (npm)4.2.2
GHSA-29gp-92wp-94q8react-dev-utils (npm)5.0.2

Also known as: GHSA-29gp-92wp-94q8

Related

CVEPublishedCVSSSummary
CVE-2026-148022026-07-067.3react create-react-app react-dev-utils openBrowser.js startBrowserProcess os command injection
CVE-2021-240332021-03-095.6same package: react-dev-utils (npm)
CVE-2022-363092022-08-168.8same weakness (CWE-78) from the same CNA (facebook)

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2018-6342, or call /api/v1/vulnerabilities/CVE-2018-6342. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org