fix: pin form-data to 4.0.4+ to patch CVE-2025-7783#155
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: simplify9/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWhat changed
Risk
Security-sensitive areas
Test coverage impact
Operational concerns
Walkthrough
ChangesDependency resolution
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested labels: Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8)package.jsonTraceback (most recent call last): 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
form-datausedMath.random()for multipart boundary generation, allowing an attacker who can observe the PRNG output to predict and inject request parameters (CVE-2025-7783 / GHSA-fjxv-7rqg-78g4).form-datais a transitive dependency ofaxios. Added aresolutionspin (^4.0.4) rather than bumpingaxiosdirectly, to keep this fix scoped to the flagged vulnerability. Lockfile now resolvesform-datato4.0.6.Test plan
yarn installcompletes cleanlyyarn buildsucceeds