Live threats

All CVEs / Facebook

CVE-2018-6342Facebook React-dev-utils

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for React-dev-utils.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
facebookreact-dev-utils≥ 1.0.0 < 1.0.4
facebookreact-dev-utils≥ 2.0.0 < 2.0.2
facebookreact-dev-utils≥ 3.0.0 < 3.1.2
facebookreact-dev-utils≥ 4.0.0 < 4.2.2
facebookreact-dev-utils≥ 5.0.0 < 5.0.2

Official sources

References

Links published by the sources. Open them with care.