LiveActive security incident?Get immediate response
CVE Record

CVE-2018-6342: react-dev-utils on Windows allows developers to run a local webserver for accepting various commands, inclu...

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.

CriticalCVSS 9.8Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

This flaw affects Windows developer environments using vulnerable react-dev-utils. A development webserver accepted requests that could launch an editor, but did not sanitize input correctly. An attacker able to reach that server, including through CSRF, could run arbitrary commands on the developer’s machine.

Executive priority

Prioritize remediation for Windows development teams and build-adjacent environments. This is not described as a production application flaw, but developer machine compromise can become a supply-chain or credential exposure incident.

Technical view

CVE-2018-6342 is a CWE-78 command injection in react-dev-utils on Windows. The vulnerable local webserver exposed a command path for launching an editor and failed to sanitize input. A network or CSRF request could trigger arbitrary command execution. Fixed versions are 1.0.4, 2.0.2, 3.1.2, 4.2.2, and 5.0.2.

Likely exposure

Exposure is most likely on Windows developer workstations running affected react-dev-utils branches. Risk increases if the development server is reachable beyond localhost or if a developer’s browser can be induced to send a request to it.

Exploitation context

The source bundle supports remote command execution via direct request or CSRF, but does not show active exploitation. The CVE is not marked KEV. Treat as high urgency because compromise of developer workstations can expose credentials, source code, and build systems.

Researcher notes

The strongest evidence is the CVE description plus the create-react-app release and PR references. The bundle does not provide exploit samples, observed attacks, or broader product impact beyond react-dev-utils on Windows.

Mitigation direction

  • Upgrade react-dev-utils to the fixed version for the installed branch or later.
  • Identify projects using vulnerable create-react-app/react-dev-utils dependency ranges.
  • Restrict development servers to localhost where possible.
  • Block inbound access to development server ports from untrusted networks.
  • Check vendor release notes and PR guidance before accepting residual risk.

Validation and detection

  • Review package manifests and lockfiles for affected react-dev-utils versions.
  • Confirm Windows developer machines no longer resolve vulnerable dependency versions.
  • Verify development servers are not externally reachable.
  • Check whether affected branches are present in archived or legacy projects.
  • Document remediation evidence for developer workstations and CI images.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-78: Command execution behavior lookup

Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2018-6342 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.8CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H3.95.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.8Critical
CVSS 3.1 vector shape for CVE-2018-6342Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Facebookreact-dev-utils5.0.2, 5.0.0, 4.2.2, 4.0.0, 3.1.2, 3.0.0, 2.0.2, 2.0.0, 1.0.4, 1.0.0, unspecifiedListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-78 · source CWE mapping

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.