Skip to content

fix(deps-dev): bump body-parser from 2.3.0 to 2.4.0 - #715

Merged
cubehouse merged 1 commit into
mainfrom
fix/body-parser-advisory
Nov 16, 2026
Merged

cubehouse merged 1 commit into
mainfrom
fix/body-parser-advisory

Conversation

@cubehouse

Copy link
Copy Markdown
Member

Upstream behaviour

body-parser >= 2.0.0, < 2.4.0 is affected by GHSA-27r3-jxmh-p828 (CVE-2026-111181, high, CVSS 7.5): a compressed request body followed by trailing bytes can cause a denial of service. It is fixed in 2.4.0.

npm audit flagged the lockfile's [email protected], which is pulled in by [email protected].

Change

Lockfile only: body-parser 2.3.0 to 2.4.0, plus the three dependency ranges 2.4.0 itself declares (content-type, iconv-lite, qs). The installed versions of those three already satisfy the new ranges, so no other package changes. package.json is untouched; express asks for ^2.3.0, which allows 2.4.0.

express is a dev dependency, so nothing here ships to package consumers.

Done with npm update body-parser rather than npm audit fix, because audit fix also bumps minimatch 10.2.5 to 10.2.6, which stays inside the vulnerable range and fixes nothing.

Not in this PR

minimatch (GHSA-g3hv-75wg-m249, medium, dev-only via typedoc) is still open. The patched release is 11.0.1, and forcing it with an override makes typedoc 0.28.20 crash (mini.matchOne is not a function). Tracked upstream in TypeStrong/typedoc#3150, with the fix in TypeStrong/typedoc#3151. Waiting on a typedoc release.

Verification

  • npm audit: the body-parser finding is gone. Only the minimatch one remains.
  • npm run typecheck and npm run build: clean.
  • npm test: 194 files, 4218 passed, 1 skipped, same as main.

🤖 Generated with Claude Code

Fixes GHSA-27r3-jxmh-p828, a denial of service when a compressed request
body is followed by trailing bytes (affects >= 2.0.0, < 2.4.0).

body-parser is only reached through express, which is a dev dependency, so
nothing here ships to package consumers. Lockfile-only change: express still
asks for ^2.3.0, which allows 2.4.0.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@cubehouse
cubehouse merged commit b8e035d into main Nov 16, 2026
5 checks passed
@cubehouse
cubehouse deleted the fix/body-parser-advisory branch November 16, 2026 18:56
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.

1 participant