LTS-4004: bump form-data to patched releases (4.0.6 / 2.5.6) — fixes CRLF injection (GHSA-hmw2-7cc7-3qxx)#14
Open
prasadthx wants to merge 1 commit into
Open
LTS-4004: bump form-data to patched releases (4.0.6 / 2.5.6) — fixes CRLF injection (GHSA-hmw2-7cc7-3qxx)#14prasadthx wants to merge 1 commit into
prasadthx wants to merge 1 commit into
Conversation
Fixes CRLF injection in form-data via unescaped multipart field names and filenames (GHSA-hmw2-7cc7-3qxx, CWE-93, CVSS 7.5). form-data is a transitive dev-dependency; both vulnerable copies bumped within existing semver ranges: top-level 4.0.4 -> 4.0.6 and 2.5.5 -> 2.5.6 (under @types/request). Lockfile-only; package.json untouched. npm v11 also reconciled a stale puppeteer-core optional-peer subtree (optional peer of webdriverio, unused by this sample) that was lingering in the lockfile; npm ci produces the same tree. No direct deps lost; no hard dep on puppeteer-core remains. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
MihirR-BS
approved these changes
Jun 24, 2026
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.
What
Bumps the transitive dev-dependency
form-datato patched releases in the lockfile:node_modules/form-data@types/request/node_modules/form-dataWhy
Resolves GHSA-hmw2-7cc7-3qxx — CRLF injection in
form-datavia unescaped multipart field names and filenames (CWE-93, CVSS 7.5).Jira: LTS-4004
Notes
form-datais not a direct dependency — it's pulled in transitively by dev tooling. Both vulnerable copies already satisfied the existing semver ranges (^4.0.0/^4.0.4and^2.5.5), so the patched versions are picked up without anypackage.jsonchange.hasown@2.0.4is added as a sub-dependency ofform-data@4.0.6.package-lock.json-only update, produced bynpm update form-data --package-lock-only. No runtime or source code changes.Why the diff is larger than just
form-datanpm(v11) also reconciled a stalepuppeteer-coresubtree that was lingering in the lockfile.puppeteer-coreis an optional peer dependency ofwebdriverioand is not used by this sample:The old lockfile had
puppeteer-core@21.11.0(and its private subtree:chromium-bidi,devtools-protocol,cross-fetch,unbzip2-stream, plus nested copies ofws/buffer/proxy-agent/@puppeteer/browsers) pinned even though nothing requires it. npm correctly drops it on reconciliation —npm ciagainst the new lockfile produces the same tree. Verified:puppeteer-core(optional peer only),🤖 Generated with Claude Code