Live threats

All CVEs / cross-spawn

CVE-2024-21538cross-spawn

High 7.7 No auth needed

Priority
61
CVSS 4.0
7.7
EPSS
1.3%
probability of exploitation in 30 days · percentile 71
Auth required
No
Published
Nov 8, 2024
Updated
Jul 28, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

Versions of the package cross-spawn before 6.0.6, from 7.0.0 and before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very large and well crafted string.

Original NVD text.

What to do

  1. Apply the vendor's security update for cross-spawn.
  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 cross-spawn ≥ 7.0.0 < 7.0.5 7.0.5 npm install cross-spawn@7.0.5
npm cross-spawn < 6.0.6 6.0.6 npm install cross-spawn@6.0.6

Per OSV / GitHub Advisories (GHSA-3xgq-45jj-v275). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.