Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security] ReDoS vulnerability #7927

Closed
folortin opened this issue Nov 21, 2024 · 3 comments
Closed

[Security] ReDoS vulnerability #7927

folortin opened this issue Nov 21, 2024 · 3 comments

Comments

@folortin
Copy link

Waiting for

Vulnerability Information

Package: npm/cross-spawn
Vulnerabilities
cross-spawn: >= 7.0.0, < 7.0.5, fixed in 7.0.5
cross-spawn: < 6.0.6, fixed in 6.0.6

Manifest Path: package-lock.json
Scope: runtime

Advisory:

ID: https://github.com/advisories/GHSA-3xgq-45jj-v275
CVE ID: https://github.com/advisories/GHSA-3xgq-45jj-v275
Severity: high
Alert url: 

https://github.com/Wise-Ingegneria/W-Radio-TS/security/dependabot/11
Summary: Regular Expression Denial of Service (ReDoS) in cross-spawn

Description:
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:

https://nvd.nist.gov/vuln/detail/CVE-2024-21538

moxystudio/node-cross-spawn#160
moxystudio/node-cross-spawn@5ff3a07
moxystudio/node-cross-spawn@640d391
https://security.snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230

https://github.com/moxystudio/node-cross-spawn/issues/165
https://github.com/moxystudio/node-cross-spawn/commit/d35c865b877d2f9ded7c1ed87521c2fdb689c8dd
https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8366349
https://github.com/advisories/GHSA-3xgq-45jj-v275
@jasperfirecai2
Copy link

To add to this: it appears the 'overrides' option doesn't work for npm and its children, so this vuln can't be overriden externally either besides node_modules file edits.

@Arauf2
Copy link

Arauf2 commented Nov 21, 2024

Already open here: #7902

@wraithgar
Copy link
Member

Duplicate of #7902

@wraithgar wraithgar marked this as a duplicate of #7902 Nov 21, 2024
@wraithgar wraithgar closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants