CVE-2018-6342
Description
Unsantized editor launch command in react-dev-utils on Windows allows remote code execution via network requests.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Unsantized editor launch command in react-dev-utils on Windows allows remote code execution via network requests.
Vulnerability
The react-dev-utils package, used by Create React App, on Windows contains a command injection vulnerability in its local development webserver. The server accepts a command to launch an editor, and the input to that command was not properly sanitized, allowing an attacker to inject arbitrary shell commands [2]. This affects versions 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 [2][4]. The fix introduced a whitelist-based validation of file names using the regex /^[\p{L}0-9/.\-_]+$/u [3].
Exploitation
An attacker can exploit this vulnerability by making a network request to the local webserver, either via Cross-Site Request Forgery (CSRF) or by direct request if the server is accessible [2]. The attacker provides a crafted payload as the editor launch command argument, which due to insufficient sanitization, results in the execution of arbitrary commands on the Windows system running the development server [2]. No authentication is required; the attacker only needs network access to the server (typically on localhost, but could be exposed).
Impact
Successful exploitation allows the attacker to execute arbitrary commands on the targeted system with the privileges of the user running the development server [2]. This constitutes a full remote code execution (RCE) vulnerability, leading to complete compromise of the affected host's confidentiality, integrity, and availability [2][4].
Mitigation
Users should upgrade react-dev-utils to the following patched versions: 1.0.4, 2.0.2, 3.1.2, 4.2.2, or 5.0.2 depending on the branch [4]. The fix was implemented in pull request #4866 and committed to the repository on August 22, 2018 [3]. There is no known workaround other than updating; the package is widely used with Create React App, which has since been deprecated in favor of framework-specific solutions [1].
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
react-dev-utilsnpm | >= 1.0.0, < 1.0.4 | 1.0.4 |
react-dev-utilsnpm | >= 2.0.0, < 2.0.2 | 2.0.2 |
react-dev-utilsnpm | >= 3.0.0, < 3.1.2 | 3.1.2 |
react-dev-utilsnpm | >= 4.0.0, < 4.2.2 | 4.2.2 |
react-dev-utilsnpm | >= 5.0.0, < 5.0.2 | 5.0.2 |
Affected products
2- Range: 5.0.2
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-29gp-92wp-94q8ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-6342ghsaADVISORY
- github.com/facebook/create-react-app/pull/4866ghsax_refsource_MISCWEB
- github.com/facebook/create-react-app/releases/tag/v1.1.5ghsax_refsource_MISCWEB
- www.npmjs.com/advisories/695ghsaWEB
News mentions
0No linked articles in our index yet.