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 | Vendor | Product | Affected versions |
|---|---|---|---|
| npm | iansu | react-dev-utils |
>= 0.4.0, < 11.0.4 Fix: upgrade to 11.0.4
|
| – | 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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-24033
- https://github.com/facebook/create-react-app/pull/10644
- https://github.com/facebook/create-react-app/commit/f5e415f3a5b66f07dcc60aba1b44...
- https://www.facebook.com/security/advisories/cve-2021-24033
- https://www.huntr.dev/bounties/1-npm-react-dev-utils/
- https://github.com/advisories/GHSA-5q6m-3h65-w53x
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-78OS Command Injection
Timeline
Published9 Mar 2021
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta