CVE-2021-24033

nodejs-react-dev-utils: function getProcessForPort concatenates input argument into a command string

Published Mar 9, 2021 CVSS 3.1 · 5.6 Medium EPSS 3.3% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-0612 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.
Github GHSA Github GHSA GHSA-5q6m-3h65-w53x react-dev-utils OS Command Injection in function `getProcessForPort`
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
facebook
Published
Updated
Aug 3, 2024, 7:21 PM
Reserved
Jan 13, 2021, 12:00 AM
Status
Modified
Published
Mar 9, 2021, 1:15 AM
Modified
Jun 17, 2026, 3:39 AM
Severity
Moderate
Public date
Mar 9, 2021, 12:00 AM