Security: Fix CVE-2024-21538 (cross-spawn)#22
Closed
vmrh21 wants to merge 1 commit intotest/workflow-cve-41174from
Closed
Security: Fix CVE-2024-21538 (cross-spawn)#22vmrh21 wants to merge 1 commit intotest/workflow-cve-41174from
vmrh21 wants to merge 1 commit intotest/workflow-cve-41174from
Conversation
- Add npm override for cross-spawn ^7.0.6 to fix CVE-2024-21538 - Update all lock files in monorepo (root, backend, frontend) - Resolves RHOAIENG-15602, RHOAIENG-15601, RHOAIENG-15600, RHOAIENG-15596, RHOAIENG-15598, RHOAIENG-15599, RHOAIENG-15597, RHOAIENG-17795 CVE Details: - CVE ID: CVE-2024-21538 - Package: cross-spawn - Severity: HIGH (CVSS 7.5) - Impact: Regular Expression Denial of Service (ReDoS) - Vulnerable versions: <6.0.6 || >=7.0.0 <7.0.5 - Fixed version: 7.0.6 Files Changed (4 total): - package.json (added overrides) - package-lock.json - backend/package-lock.json - frontend/package-lock.json Breaking Changes: - None (security patch only) Testing: - Verified cross-spawn@7.0.6 via npm list - Confirmed CVE no longer in npm audit - All tests passed (30 passed, 0 failed) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Date: 2026-02-19
Summary
This PR fixes CVE-2024-21538 by adding an npm override to force cross-spawn to version 7.0.6 across all dependencies.
CVE Details
Test Results
Status: ✅ All tests passed
Tests discovered: Yes
Test command:
npm testResult: PASSED
Duration: ~30s
Test Summary
Backend: All type checks passed
Frontend: 4 test suites passed
Changes Made
"cross-spawn": "^7.0.6"in root package.jsonBreaking Changes
None - this is a pure security patch with no API changes. Version 7.0.6 is backward compatible with 7.0.x.
Testing Checklist
npm list cross-spawnnpm auditRisk Assessment
Verification Steps
Verify CVE resolved:
Verify cross-spawn version:
npm list cross-spawn # Should show 7.0.6Run tests:
References
🤖 Generated by CVE Fixer Workflow