SEC-2309: patch form-data to 4.0.6 (CVE-2025-7501)#2
Open
himynameisang wants to merge 4 commits into
Open
Conversation
- Bumps form-data 4.0.2 → 4.0.6 via npm update (resolves ORCA-8368351) - Switches Dockerfile from npm install to npm ci so future builds fail fast if the lock file is ever missing or inconsistent Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Infrastructure as Code | View in Orca | ||
| SAST | View in Orca | ||
| Secrets | View in Orca | ||
| Vulnerabilities | View in Orca |
There was a problem hiding this comment.
Pull request overview
This PR addresses a security finding by updating the transitive form-data dependency to a patched release and tightening Docker build reproducibility by using npm ci instead of npm install.
Changes:
- Updated
form-datafrom4.0.2to4.0.6inpackage-lock.json(including associated dependency updates likehasownandmime-types). - Changed the Docker build dependency install step from
npm installtonpm cito enforce lockfile consistency during image builds.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package-lock.json | Bumps form-data to 4.0.6 (and updates related transitive deps) to address CVE-2025-7501. |
| Dockerfile | Switches dependency installation to npm ci to ensure deterministic installs and fail fast on lockfile issues. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Adds overrides.form-data >=4.0.5 to package.json for consistency with zendesk-mcp-server and to guard against future npm update runs re-resolving below the patched floor. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Bounds the major version to avoid resolving into a future 5.x release. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Cleaner fix: bump axios ^1.8.1 → ^1.14.0 so form-data 4.0.6 flows in via axios's own ^4.0.5 constraint. Removes the overrides block. Co-Authored-By: Claude Sonnet 4.6 <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.
https://simondata.atlassian.net/browse/SECURITY-2309
Summary
form-datafrom 4.0.2 → 4.0.6 vianpm update, resolving ORCA-8368351 (CVE-2025-7501). The patched version is sourced from the JFrog registry which has 4.0.6 available.Dockerfilefromnpm installtonpm ciso future Docker builds fail fast if the lock file is ever missing or inconsistent, rather than silently re-resolving to a potentially vulnerable version.Test plan
npm auditno longer flagsform-dataafter this changenpm ci🤖 Generated with Claude Code