Security: Fix CVE-2025-7783 (form-data Unsafe Random)#20
Closed
vmrh21 wants to merge 1 commit intotest/workflow-cve-41174from
Closed
Security: Fix CVE-2025-7783 (form-data Unsafe Random)#20vmrh21 wants to merge 1 commit intotest/workflow-cve-41174from
vmrh21 wants to merge 1 commit intotest/workflow-cve-41174from
Conversation
- Add npm override for form-data ^4.0.5 to fix CVE-2025-7783 - Update all lock files in monorepo (root, backend, frontend) - Resolves RHOAIENG-30545, RHOAIENG-30548, RHOAIENG-30550, RHOAIENG-30546, RHOAIENG-30549, RHOAIENG-30547, RHOAIENG-30724 CVE Details: - CVE ID: CVE-2025-7783 - Package: form-data - Severity: CRITICAL (CVSS 9.1) - Impact: Unsafe random function for boundary selection - enables parameter injection attacks - Vulnerable versions: 3.0.0 - 3.0.3 - Fixed version: 4.0.5 Files Changed (4 total): - package.json (added overrides) - package-lock.json - backend/package-lock.json - frontend/package-lock.json Breaking Changes: - Minor API changes in form-data 4.x but most code is compatible - No application code changes required Testing: - Verified form-data@4.0.5 via npm list - Confirmed CVE-2025-7783 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-2025-7783 by upgrading form-data to 4.0.5 via npm overrides.
CVE Details
Fix Method
Used npm
overridesfield in root package.json to force form-data ^4.0.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: 4.1 seconds
Test Summary
Important: Despite form-data upgrading from 3.x to 4.x (minor API changes), all tests passed, confirming that the application code is compatible with the newer version.
Verdict: The form-data security fix does not break any existing functionality.
Changes
Files Changed (4 total):
package.json- Added npm overrides for form-data ^4.0.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
Minor API changes in form-data 4.x, but all tests passed, confirming compatibility. No application code changes required for this fix.
Testing Checklist
Risk Assessment
Important Note
This is a CRITICAL severity vulnerability (CVSS 9.1) that allows attackers to predict multipart form boundaries and inject malicious parameters. Priority merge recommended.
All automated tests passed, demonstrating that the application is compatible with form-data 4.0.5.
References
.cve-fix/examples.md(CVE-2025-7783 section)🤖 Generated by CVE Fixer Workflow