Skip to content

build(deps): update body-parser to 2.4.0 for GHSA-27r3-jxmh-p828 - #295

Merged
saadahmed95 merged 1 commit into
mainfrom
build/body-parser-2.4.0
Oct 27, 2026
Merged

saadahmed95 merged 1 commit into
mainfrom
build/body-parser-2.4.0

Conversation

@saadahmed95

Copy link
Copy Markdown
Contributor

Why

The build-chain audit gate fails on main and on every open PR. GHSA-27r3-jxmh-p828, published on 23 October, rates body-parser 2.0.0 to 2.3.0 high: a compressed request body with trailing bytes can exhaust the server. The engine reaches body-parser through express, which parses every HTTP request body createApp receives. The patched release is 2.4.0.

What Changed

package-lock.json only. Express 5.3.0 asks for body-parser ^2.3.0, so npm update body-parser moves it to 2.4.0. body-parser 2.4.0 raises its own floors, which moves iconv-lite from 0.7.2 to 0.7.3 and qs from 6.16.0 to 6.16.1. Nothing else changes, and package.json is untouched.

A consumer's own lockfile decides which body-parser it runs, so this does not reach an installed engine. A consumer clears the advisory the same way, with npm update body-parser.

Alternatives Considered

Recording an acceptance in .github/audit-acknowledgements.json. A patched version exists inside express's range, so there is nothing to accept. npm audit fix would also touch the moderate and low findings, which the gate does not hold the build to.

ADRs & Architecture

No change.

Testing

npm run check:audit now reports clean at high and above. npm test passes all 1021 tests on the updated lockfile.

Related Issues

Unblocks the release PR #294, whose build chain failed on this advisory.

🤖 Generated with Claude Code

Express 5.3.0 accepts body-parser ^2.3.0, so this is a lockfile-only
update. body-parser 2.4.0's floors also move iconv-lite to 0.7.3 and
qs to 6.16.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lore-agent

lore-agent Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Lore is reviewing this PR — 75239f39-0ba5-45aa-b8f5-df4241387507.

Submit a review that requests changes to have Lore push a fix for it. Comment @lore review to re-run the review.

@github-actions

Copy link
Copy Markdown

🔍 Lore Spec Impact

Examined 1 changed file(s): 0 had graph data (no coupling found), 1 had none — no ingested test run covers them, so this check cannot speak for them.

Deterministic · graph @ 5942351 (projected 2026-10-27) · 1 file(s) skipped: changed since the graph last saw them, so their line numbers no longer line up · no tests run by this check

@lore-agent lore-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lore review — Approved

Clean lockfile update bumping body-parser to 2.4.0 to resolve GHSA-27r3-jxmh-p828.

Must fix (0) · Consider (0) · Nits (0)

Reviewed by gemini-4-argon

Submit a review that requests changes to have Lore push a fix for it. Comment @lore review to re-run the review.

Posted by floor, visit 8a943913-54e2-4173-8186-f5e188e4f98d.

@saadahmed95
saadahmed95 merged commit 8c6d5fd into main Oct 27, 2026
10 checks passed
@saadahmed95
saadahmed95 deleted the build/body-parser-2.4.0 branch October 27, 2026 07:40
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