cve.bz

CVE-2018-6342 facebook react-dev-utils: OS Command Injection

9.8 criticalEPSS 2.8%Fix available

Critical (9.8) in facebook react-dev-utils. EPSS 2.8% estimated probability of exploitation activity in the next 30 days. Fixed in react-dev-utils 1.0.4, 2.0.2, 3.1.2.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.8% (unchanged from 2.8% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-05-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • react-dev-utils (npm): fixed in 1.0.4, 2.0.2, 3.1.2, 4.2.2, 5.0.2

Ask an AI about this CVE

Show the promptExplain CVE-2018-6342 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-6342?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-6342?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-6342 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Facebook react-dev-utils5.0.2
Facebook react-dev-utilsfrom 5.0.0 before unspecified
Facebook react-dev-utils4.2.2
Facebook react-dev-utilsfrom 4.0.0 before unspecified
Facebook react-dev-utils3.1.2
Facebook react-dev-utilsfrom 3.0.0 before unspecified
Facebook react-dev-utils2.0.2
Facebook react-dev-utilsfrom 2.0.0 before unspecified
Facebook react-dev-utils1.0.4
Facebook react-dev-utilsfrom 1.0.0 before unspecified

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-29gp-92wp-94q8npmreact-dev-utils>=1.0.0 <1.0.41.0.4
GHSA-29gp-92wp-94q8npmreact-dev-utils>=2.0.0 <2.0.22.0.2
GHSA-29gp-92wp-94q8npmreact-dev-utils>=3.0.0 <3.1.23.1.2
GHSA-29gp-92wp-94q8npmreact-dev-utils>=4.0.0 <4.2.24.2.2
GHSA-29gp-92wp-94q8npmreact-dev-utils>=5.0.0 <5.0.25.0.2

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON