CVE-2024-21538

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductCross-spawn
PublishedNov 8, 2024
First seenNov 8, 2024
Weakness typeCWE-1333CWE-1333

How to fix

Update
  • cross-spawn7.0.5, 6.0.6 or later

Affected products

ProductAffected versionsFixed in
cross-spawnnpm7.0.0 ≤ v < 7.0.5, v < 6.0.67.0.5, 6.0.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.