Security: Fix CVE-2023-26115 (word-wrap ReDoS)#18
Closed
vmrh21 wants to merge 1 commit intotest/workflow-cve-41174from
Closed
Security: Fix CVE-2023-26115 (word-wrap ReDoS)#18vmrh21 wants to merge 1 commit intotest/workflow-cve-41174from
vmrh21 wants to merge 1 commit intotest/workflow-cve-41174from
Conversation
- Add npm override for word-wrap ^1.2.5 to fix CVE-2023-26115 - Update all lock files in monorepo (root, backend, frontend) - Resolves RHOAIENG-427 CVE Details: - CVE ID: CVE-2023-26115 - Package: word-wrap - Severity: MODERATE (CVSS 5.3) - Impact: Regular Expression Denial of Service vulnerability - Vulnerable versions: < 1.2.4 - Fixed version: 1.2.5 Files Changed (4 total): - package.json (added overrides) - package-lock.json - backend/package-lock.json - frontend/package-lock.json Breaking Changes: - None - word-wrap 1.2.5 is a pure security patch Testing: - Verified word-wrap@1.2.5 via npm list - Confirmed CVE-2023-26115 no longer in npm audit Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Owner
Author
|
Test complete - resetting for fresh test |
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.
Summary
This PR fixes CVE-2023-26115 by upgrading word-wrap to 1.2.5 via npm overrides.
CVE Details
Fix Method
Used npm
overridesfield in root package.json to force word-wrap ^1.2.5 across all transitive dependencies. This is the recommended approach for fixing transitive dependency vulnerabilities.Test Results ✅
Status: ✅ All tests passed
Test Discovery: Tests found in package.json
Test Command:
npm testTest Framework: Jest + ESLint + TypeScript
Duration: 8.3 seconds
Test Summary
Verdict: The word-wrap security fix does not break any existing functionality.
Changes
Files Changed (4 total):
package.json- Added npm overrides for word-wrap ^1.2.5package-lock.json- Updated root workspacebackend/package-lock.json- Updated backend workspacefrontend/package-lock.json- Updated frontend workspaceNote: This is a monorepo - all workspace lock files must be updated together.
Breaking Changes
None. word-wrap 1.2.5 is a pure security patch with no API changes.
Testing Checklist
Risk Assessment
References
.cve-fix/examples.md(CVE-2023-26115 section)🤖 Generated by CVE Fixer Workflow