CVE-2021-24033
publishednodejs-react-dev-utils: function getProcessForPort concatenates input argument into a command string
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| — | react-dev-utils11.0.4 to < unspecified (unaffected · custom) · unspecified to < 11.0.4 (affected · custom) | Version-specific | Not stated |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| react-dev-utils | 11.0.4 to < unspecified (unaffected · custom)unspecified to < 11.0.4 (affected · custom) | facebook · cna |
Weaknesses
1- CWE-78 Improper Neutralization of Special Elements used in an OS Command (CWE-78)
References
2Provider assertions
2facebook · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 01f81fbf0c2b136fc4d4fe9cae195d99b820122477fbf2d0154f95d0354ec139
- Ingested
- 23 Sep 2026, 07:52:58 UTC
- Source record
- Official CVE record