Advisory

GHSA-5q6m-3h65-w53x

Also known as: CVE-2021-24033

Summary

react-dev-utils OS Command Injection in function getProcessForPort

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-03-11 22:26 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

react-dev-utils

npm · All systems

Affected

  • introduced 0.4.0, fixed 11.0.4 (semver)

Fixed versions

11.0.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences