~ / search / GHSA-3xgq-45jj-v275

GHSA-3xgq-45jj-v275

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

Source: GitHub Advisory Database (reviewed) High CVE-2024-21538

Packages

EcosystemPackageAffectedFixed in
npm cross-spawn >= 7.0.0, < 7.0.5 7.0.5
npm cross-spawn < 6.0.6 6.0.6

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.