Skip to content

fix(security): patch form-data CVE-2025-7783 (CVSS 9.4) [STAFF-1110]#93

Merged
Tyler (tylerwashington888) merged 4 commits into
masterfrom
security/STAFF-1110-fix-form-data-cve-2025-7783
Jun 29, 2026
Merged

fix(security): patch form-data CVE-2025-7783 (CVSS 9.4) [STAFF-1110]#93
Tyler (tylerwashington888) merged 4 commits into
masterfrom
security/STAFF-1110-fix-form-data-cve-2025-7783

Conversation

@tylerwashington888

@tylerwashington888 Tyler (tylerwashington888) commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Patches CVE-2025-7783 (GHSA-fjxv-7rqg-78g4, CVSS 9.4) in form-data, a transitive dependency pulled in via @contentful/app-sdk → contentful-management → axios.

Part of PROD-2678 · Closes STAFF-1110

What changed

form-data is not a direct dependency — uses npm overrides to pin each instance to its patched version in-major (no breaking changes):

Dependent Before After
axios → form-data 4.0.0 4.0.6
@types/node-fetch → form-data 4.0.0 4.0.6
jsdom → form-data 3.0.1 3.0.5

Scoped overrides are used (rather than a global form-data: 4.0.6) to avoid forcing jsdom across a major version boundary, since it requires ^3.0.0.

Files changed

  • package.json — adds scoped overrides entries
  • package-lock.json — lockfile updated with patched versions

No other files changed.

Test plan

  • npm run test:ci — all 18 tests pass
  • npm auditform-data no longer flagged

🤖 Generated with Claude Code

Adds npm overrides to force form-data to patched versions:
- axios and @types/node-fetch: 4.0.0 → 4.0.6
- jsdom: 3.0.1 → 3.0.5

Scoped overrides used to avoid a major-version jump on the jsdom
instance (which requires ^3.0.0).

Closes STAFF-1110 | Part of PROD-2678

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tylerwashington888
Tyler (tylerwashington888) requested a review from a team as a code owner June 29, 2026 22:22
Chromatic workflow was running npm install without authenticating
against npm.pkg.github.com, causing 401s on @contentful/* packages.
The job already has packages:read permission so GITHUB_TOKEN suffices.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Chromatic needs the full commit graph to diff against baselines.
actions/checkout@v3 does a shallow clone by default; fetch-depth: 0
restores the full history.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Workflow changes were out of scope for a security patch PR.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tylerwashington888
Tyler (tylerwashington888) merged commit 1c032e0 into master Jun 29, 2026
9 of 10 checks passed
@tylerwashington888
Tyler (tylerwashington888) deleted the security/STAFF-1110-fix-form-data-cve-2025-7783 branch June 29, 2026 23:15
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.7.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants