CVE-2024-21538cross-spawn
High 7.7 No auth needed
Follow: this CVE · cross-spawn · cross-spawn We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for cross-spawn.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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
- cross-spawn · cross-spawn
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Red Hat Security Advisory: Red Hat Ceph Storage 8.1 security and bug fix updates · Red Hat · RHSA-2026:61939 · Dec 1, 2026 High
- nodejs26-26.3.1-1.1 on GA media · SUSE · openSUSE-SU-2026:11110-1 · Jun 23, 2026 Critical
- corepack24-24.11.1-2.1 on GA media · SUSE · openSUSE-SU-2025:15802-1 · Dec 8, 2025 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.