Live threats

All CVEs / Facebook

CVE-2021-24033Facebook React-dev-utils

Medium 5.6 No auth needed

Priority
49
CVSS 3.1
5.6
EPSS
3.3%
probability of exploitation in 30 days · percentile 89
Auth required
No
Published
Mar 9, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for React-dev-utils.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm react-dev-utils ≥ 0.4.0 < 11.0.4 11.0.4 npm install react-dev-utils@11.0.4

Per OSV / GitHub Advisories (GHSA-5q6m-3h65-w53x). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
facebookreact-dev-utils< 11.0.4

Official sources

References

Links published by the sources. Open them with care.