Advisory

GHSA-3xgq-45jj-v275

Also known as: CVE-2024-21538

Summary

Regular Expression Denial of Service (ReDoS) in cross-spawn

Details

Versions of the package cross-spawn 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-11-08 06:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

cross-spawn

npm · All systems

Affected

  • introduced 7.0.0, fixed 7.0.5 (semver)

Fixed versions

7.0.5

Fix

cross-spawn

npm · All systems

Affected

  • introduced 0, fixed 6.0.6 (semver)

Fixed versions

6.0.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences