Security: Fix CVE-2025-7783 (form-data)#15
Closed
vmrh21 wants to merge 1 commit intotest/workflow-cve-41174from
Closed
Security: Fix CVE-2025-7783 (form-data)#15vmrh21 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 (unsafe random function) - Update all lock files in monorepo (main, backend, frontend) - Resolves 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 used for choosing boundary in multipart/form-data - Vulnerable versions: 3.0.0 - 3.0.3 - Fixed version: 4.0.5 Fix Method: - Used npm overrides to force form-data ^4.0.5 across all transitive dependencies - This ensures all instances of form-data use the patched version - Upgraded from 3.x to 4.x (latest major version) Files Changed (4 total): - package.json (added overrides section) - package-lock.json (updated dependencies) - backend/package-lock.json (updated dependencies) - frontend/package-lock.json (updated dependencies) Breaking Changes: - form-data 4.x has minor API changes from 3.x - Most changes are internal improvements - Existing code using standard form-data APIs should work without modification Testing: - Verified form-data@4.0.5 is installed via npm list - Confirmed CVE-2025-7783 no longer appears 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 from 3.x to 4.0.5 using npm overrides.
CVE Details
Vulnerability Description
The form-data package versions 3.0.0 through 3.0.3 use Math.random() for generating multipart boundaries, which is not cryptographically secure. This could allow an attacker to predict boundaries and potentially bypass security controls or manipulate form submissions.
Fix Method
This PR uses npm's overrides feature to force all transitive dependencies to use form-data ^4.0.5.
Why npm overrides?
Breaking Changes
Minor API changes in form-data 4.x:
Impact: LOW - The application uses form-data as a transitive dependency, not directly. No code changes required.
Files Changed
Total: 4 files changed
Testing Checklist
Risk Assessment
Generated with CVE Fixer Workflow