Command Injection

Affecting react-dev-utils package, versions <11.0.4

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

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.

Remediation

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

References

CVSS Score

5.6
medium severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    Low
  • Integrity
    Low
  • Availability
    Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Credit
zpbrent(zhou, peng@shu)
CVE
CVE-2021-24033
CWE
CWE-78
Snyk ID
SNYK-JS-REACTDEVUTILS-1083268
Disclosed
09 Mar, 2021
Published
09 Mar, 2021