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.
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-31 | Published |
| 2019-01-04 | Package advisory GHSA-29gp-92wp-94q8 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 2.84% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-29gp-92wp-94q8 | react-dev-utils (npm) | 1.0.4 |
| GHSA-29gp-92wp-94q8 | react-dev-utils (npm) | 2.0.2 |
| GHSA-29gp-92wp-94q8 | react-dev-utils (npm) | 3.1.2 |
| GHSA-29gp-92wp-94q8 | react-dev-utils (npm) | 4.2.2 |
| GHSA-29gp-92wp-94q8 | react-dev-utils (npm) | 5.0.2 |
Also known as: GHSA-29gp-92wp-94q8
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-14802 | 2026-07-06 | 7.3 | react create-react-app react-dev-utils openBrowser.js startBrowserProcess os command injection |
| CVE-2021-24033 | 2021-03-09 | 5.6 | same package: react-dev-utils (npm) |
| CVE-2022-36309 | 2022-08-16 | 8.8 | same 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.