CVE-2024-21538

published 8 Nov 2024 · updated 16 Nov 2026

Versions of the package cross-spawn before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization.

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 6.0.6, 7.0.5 and 7.0.6.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<6.0.6, >=7.0.0 <7.0.5, >=7.0.2 <7.0.66.0.6, 7.0.5, 7.0.6

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-21538 severity on Zeptric[![CVE-2024-21538](https://zeptric.io/badge/cve/CVE-2024-21538.svg)](https://zeptric.io/cve/CVE-2024-21538)