-
-
Notifications
You must be signed in to change notification settings - Fork 302
[SECURITY] Bump cross-spawn, CVE-2024-21538 #546
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
base: master
Are you sure you want to change the base?
Conversation
Would be good to get this reviewed / merged rather than relying on |
Why do we need this PR? The ^ versions should already cause |
7ae23a7
to
8a32882
Compare
@YasharF The semantics of |
Any news on this? |
The If dependency resolution is still forcing an older, vulnerable version of cross-spawn, it’s likely caused by another package in your project. You can investigate the source by running In cases where a dependency introduces an unresolved regression or backward incompatibility, pinning a specific version of an npm module in your package.json can be a temporary approach while the issue is being addressed by the package owner. If that pinned version includes a vulnerable version of
|
Summary
This pull request upgrades the
cross-spawn
dependency to version 7.0.6, addressing a high-severity security vulnerability identified as CVE-2024-21538. The upgrade ensures the application is protected against potential exploitation via a Regular Expression Denial of Service (ReDoS) attack.Detailed Description
Vulnerability Details
cross-spawn
package prior to 7.0.5 are vulnerable to a ReDoS attack. The issue arises from improper input sanitization in regular expressions, allowing attackers to craft malicious strings that significantly increase CPU usage and may lead to application crashes.Changes Made
cross-spawn
dependency inpackage.json
to v7.0.6.npm install
(or equivalent) to regeneratepackage-lock.json
ensuring consistency with the updated version.Impact on Codebase
cross-spawn
package. No other dependencies are affected.Testing & Validation
cross-spawn
to confirm no regressions or issues.cross-spawn
v7.0.6 to ensure compatibility with our current usage.