Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
5.6

CVE-2021-24033: Create React App's getProcessForPort function can be exploited by malicious input

CVE-2021-24033 · published 5 years ago
Summary

A security issue exists in older versions of create-react-app's utility functions, which could allow an attacker to execute arbitrary commands. This only affects users who have manually modified their project to use these functions. If you're using create-react-app's standard features, you're safe. Update to the latest version of create-react-app to fix the issue.

What to do
  • Update iansu react-dev-utils to version 11.0.4.
  • Update facebook react-dev-utils to version 11.0.4 or later.
Affected software
Ecosystem VendorProductAffected versions
npm iansu react-dev-utils >= 0.4.0, < 11.0.4
Fix: upgrade to 11.0.4
– facebook react-dev-utils < 11.0.4
cpe:2.3:a:facebook:react-dev-utils:*:*:*:*:*:*:*:*
Original advisory text
react-dev-utils prior to v11.0.4 exposes a function, getProcessForPort, where an input argument is concatenated into a command string to be executed. This function is typically used from react-scri...
react-dev-utils prior to v11.0.4 exposes a function, 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.
Fix within
Internet-facing 14 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker partial control (estimated)
Severity
5.6 Medium
Exploitation
3% chance of attack within 30 days
Type
CWE-78OS Command Injection
Timeline
Published9 Mar 2021
Updated4 Nov 2026
First seen6 Mar 2026
Sources
Track software like this
Free during beta