CVE-2021-24033: facebook react-dev-utils OS Command Injection
Vulnerability summary
CVE-2021-24033 is a medium (CVSS 6.8) OS Command Injection vulnerability in facebook react-dev-utils. EPSS estimates a 3.29% chance of exploitation in the next 30 days, higher than 88.3% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 09-03-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST5.6MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS trend
Probability
3.29%
Chance of exploitation in the next 30 days
Percentile
88%
Versus all other CVEs
30-day change
0.00 pp
From 3.29% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundCreate React App
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Facebook1 product
- react-dev-utils≥ unspecified, < 11.0.4 | < 11.0.4
Npm1 product
- react-dev-utils≥ 0.4.0, < 11.0.4
2 vendors · 2 products