Command Injection Affecting react-dev-utils package, versions <11.0.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.17% (56th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-REACTDEVUTILS-1083268
  • published9 Mar 2021
  • disclosed9 Mar 2021
  • creditzpbrent(zhou, peng@shu)

Introduced: 9 Mar 2021

CVE-2021-24033  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade react-dev-utils to version 11.0.4 or higher.

Overview

react-dev-utils is an includes some utilities used by Create React App.

Affected versions of this package are vulnerable to Command Injection via getProcessForPort - where an input argument is concatenated into a command string to be executed. This function is typically used from react-scripts (in Create React App projects), where the usage is safe. Only when this function is manually invoked with user-provided values (ie: by custom code) is there the potential for command injection. If you're consuming it from react-scripts then this issue does not affect you.

CVSS Scores

version 3.1