CVE-2018-6342Facebook React-dev-utils
Critical 9.8 No auth needed
Follow: this CVE · Facebook · Facebook React-dev-utils We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.8% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Dec 31, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for React-dev-utils.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | react-dev-utils |
≥ 1.0.0 < 1.0.4 |
1.0.4 |
npm install react-dev-utils@1.0.4 |
| npm | react-dev-utils |
≥ 2.0.0 < 2.0.2 |
2.0.2 |
npm install react-dev-utils@2.0.2 |
| npm | react-dev-utils |
≥ 3.0.0 < 3.1.2 |
3.1.2 |
npm install react-dev-utils@3.1.2 |
| npm | react-dev-utils |
≥ 4.0.0 < 4.2.2 |
4.2.2 |
npm install react-dev-utils@4.2.2 |
| npm | react-dev-utils |
≥ 5.0.0 < 5.0.2 |
5.0.2 |
npm install react-dev-utils@5.0.2 |
Per OSV / GitHub Advisories (GHSA-29gp-92wp-94q8). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| react-dev-utils | ≥ 1.0.0 < 1.0.4 | |
| react-dev-utils | ≥ 2.0.0 < 2.0.2 | |
| react-dev-utils | ≥ 3.0.0 < 3.1.2 | |
| react-dev-utils | ≥ 4.0.0 < 4.2.2 | |
| react-dev-utils | ≥ 5.0.0 < 5.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- github.com Release Notes Third Party Advisory