Skip to content

Fix critical Dependabot alerts: handlebars & form-data - #19

Merged
BowlegsBill merged 1 commit into
mainfrom
fix/dependabot-form-data-handlebars
Jul 24, 2026
Merged

Fix critical Dependabot alerts: handlebars & form-data#19
BowlegsBill merged 1 commit into
mainfrom
fix/dependabot-form-data-handlebars

Conversation

@BowlegsBill

Copy link
Copy Markdown

Resolves two critical Dependabot alerts for transitive dependencies in server/.

Alert Package Was Now Advisory Pulled in by
kubero-dev#75 handlebars 4.7.8 4.7.9 CVE-2026-33937 — AST type-confusion RCE via compile() ts-jest (dev)
#20 form-data 2.3.3 2.5.6 CVE-2025-7783 — predictable multipart boundary via Math.random() @kubernetes/client-noderequest (runtime)

Approach

Both are transitive deps, so they're fixed via a resolutions block in server/package.json:

"resolutions": {
  "**/request/form-data": "^2.5.4",
  "handlebars": "^4.7.9"
}
  • form-data is scoped to the deprecated request chain only. Another copy (form-data@4.0.4) was already on the patched 4.x line and is used by other packages — a global resolution would have downgraded those, so this leaves them untouched.
  • handlebars has a single consumer, so a plain resolution is safe.

Verification

  • yarn install clean.
  • nest build passes.
  • On disk: handlebars@4.7.9, root form-data@4.0.4, nested request/form-data@2.5.6 — no vulnerable versions remain.

🤖 Generated with Claude Code

Resolve two critical Dependabot alerts for transitive deps in server/:

- handlebars 4.7.8 -> 4.7.9 (CVE-2026-33937, AST type-confusion RCE),
  pulled in via ts-jest.
- form-data 2.3.3 -> 2.5.6 (CVE-2025-7783, predictable multipart
  boundary), pulled in via @kubernetes/client-node -> request. Scoped
  to that chain so the already-patched form-data@4.0.4 used elsewhere
  is left untouched.

Applied via yarn resolutions.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Lines Statements Branches Functions
Coverage: 86%
86.91% (14922/17169) 78.52% (852/1085) 76.97% (371/482)
Tests Skipped Failures Errors Time
538 0 💤 0 ❌ 0 🔥 54.743s ⏱️

@BowlegsBill
BowlegsBill merged commit c7e2ae2 into main Jul 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants