CVE-2024-21538: npm
Vulnerability summary
CVE-2024-21538 is a high (CVSS 8.7) vulnerability in npm. EPSS estimates a 0.87% chance of exploitation in the next 30 days, higher than 58.7% of scored vulnerabilities.
Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 14Timeline
- 08-11-2024PublishedVulnerability first disclosed.
- 07-08-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
8 scores · 6 sources · 2 versions- OSV · WolfiEcosystem advisory · calculated8.7HighCVSS: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
- OSV · NpmEcosystem advisory · calculated8.7HighCVSS: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
- OSV · ChainguardEcosystem advisory · calculated8.7HighCVSS: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
- NVDNIST7.7HighCVSS: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:XDiffers
- OSV · AlpineEcosystem advisory · calculated8.7HighCVSS: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
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.87%
Chance of exploitation in the next 30 days
Percentile
59%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.87% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard73 products
- airflow-2< 2.11.0-r15
- arangodb-3.11< 3.11.14.5-r3
- arangodb-3.12< 3.12.9.4-r8
- argo-workflows< 3.6.0-r1
- eslint< 9.15.0-r0
Wolfi23 products
- argo-workflows< 3.6.0-r1
- eslint< 9.15.0-r0
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compatAll versions (No fix recorded)
- katib-suggestion-hyperband< 0.19.0-r31
Opensuse10 products
- jupyter-jupyterlab-latex&distro=openSUSE Tumbleweed< 4.1.1-2.1
- nodejs18&distro=openSUSE Leap 15.5< 18.20.5-150400.9.30.1
- nodejs20&distro=openSUSE Leap 15.5< 20.18.1-150500.11.15.1
- nodejs20&distro=openSUSE Leap 15.6< 20.18.1-150600.3.6.1
- nodejs22&distro=openSUSE Tumbleweed< 22.12.0-1.1
Suse4 products
- nodejs18&distro=SUSE Linux Enterprise Module for Web and Scripting 15 SP5< 18.20.5-150400.9.30.1
- nodejs18&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5< 18.20.5-8.30.1
- nodejs20&distro=SUSE Linux Enterprise Module for Web and Scripting 15 SP5< 20.18.1-150500.11.15.1
- nodejs20&distro=SUSE Linux Enterprise Module for Web and Scripting 15 SP6< 20.18.1-150600.3.6.1
Alpine1 product
- npm< 10.9.1-r0
Npm1 product
- cross-spawn≥ 7.0.0, < 7.0.5 | < 6.0.6
6 vendors · 112 products
References
19 linksShow all 19 references
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory