CVE-2018-6342: react-dev-utils on Windows vulnerable to Remote Code Execution

react-dev-utils Updated 02 Oct 2025

Summary

04/01/2019
Yes i
High
Not published

CVE-2018-6342: react-dev-utils on Windows vulnerable to Remote Code Execution. Affects react-dev-utils across 5 version ranges.

>= 1.0.0, < 1.0.4 >= 2.0.0, < 2.0.2 >= 3.0.0, < 3.1.2 >= 4.0.0, < 4.2.2 >= 5.0.0, < 5.0.2

Fixed in 5 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

react-dev-utils is an open-source package in the npm ecosystem. It provides various utilities for development with React. This package is widely used by developers to enhance their React development workflow. However, versions of react-dev-utils running on Windows are vulnerable to remote code execution.

Vulnerability Detail

The vulnerability in react-dev-utils on Windows allows an attacker to execute arbitrary code remotely. This can lead to unauthorized access, data breaches, and potential compromise of the affected system. The vulnerability is classified as CWE-78, which is the Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') weakness.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 1.0.0, < 1.0.4 1.0.4
    npm install react-dev-utils@1.0.4
  • >= 2.0.0, < 2.0.2 2.0.2
    npm install react-dev-utils@2.0.2
  • >= 3.0.0, < 3.1.2 3.1.2
    npm install react-dev-utils@3.1.2
  • >= 4.0.0, < 4.2.2 4.2.2
    npm install react-dev-utils@4.2.2
  • >= 5.0.0, < 5.0.2 5.0.2
    npm install react-dev-utils@5.0.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. It is crucial to update the package to the fixed versions as soon as possible to mitigate the risk of remote code execution.

Conclusion

In conclusion, react-dev-utils on Windows is vulnerable to remote code execution. It is crucial to update the package to the fixed versions mentioned above to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for react-dev-utils →

Share this vulnerability

FAQ

react-dev-utils is an npm package that provides utilities for development with React. It includes various tools and configurations to enhance the React development workflow.

The vulnerability allows an attacker to execute arbitrary code remotely on systems running react-dev-utils on Windows. This can lead to unauthorized access, data breaches, and potential compromise of the affected system.

This vulnerability is classified as CWE-78, which is the Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') weakness.

To fix this vulnerability, update react-dev-utils to one of the fixed versions: 1.0.4, 2.0.2, 3.1.2, 4.2.2, 5.0.2, or 6.0.0-next.a671462c.

There is no specific workaround mentioned for this vulnerability. It is recommended to update the package to the fixed versions as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for react-dev-utils.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 1.0.0, < 1.0.4 1.0.4
    npm install react-dev-utils@1.0.4
  • >= 2.0.0, < 2.0.2 2.0.2
    npm install react-dev-utils@2.0.2
  • >= 3.0.0, < 3.1.2 3.1.2
    npm install react-dev-utils@3.1.2
  • >= 4.0.0, < 4.2.2 4.2.2
    npm install react-dev-utils@4.2.2
  • >= 5.0.0, < 5.0.2 5.0.2
    npm install react-dev-utils@5.0.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback