Vulnerabilities

CVE-2024-21538

High 8.7 CVSS 4.0

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.

Description as published by the source, in English.

Key facts

Published
2024-11-08
Last modified
2026-08-07
Assigned by
snyk
CVSS 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
Scored by
CVE Program
Probability of exploitation
0.9 % higher than 55 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
n/a cross-spawn ≥ 0, < 6.0.6 Affected
n/a cross-spawn ≥ 7.0.0, < 7.0.5 Affected
n/a org.webjars.npm:cross-spawn ≥ 0, < 6.0.6 Affected
n/a org.webjars.npm:cross-spawn ≥ 7.0.2, < 7.0.6 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities