Skip to content

deps: bump body-parser to ^2.3.0 to fix CVE-2026-12590#7390

Open
Mayvis wants to merge 1 commit into
expressjs:masterfrom
Mayvis:fix/body-parser-cve-2026-12590
Open

deps: bump body-parser to ^2.3.0 to fix CVE-2026-12590#7390
Mayvis wants to merge 1 commit into
expressjs:masterfrom
Mayvis:fix/body-parser-cve-2026-12590

Conversation

@Mayvis

@Mayvis Mayvis commented Jul 22, 2026

Copy link
Copy Markdown

Summary

Bumps body-parser from ^2.2.1 to ^2.3.0 to remediate CVE-2026-12590 (GHSA-v422-hmwv-36x6).

body-parser >=2.0.0 <2.3.0 (and <1.20.6 on the 1.x line) fails open when
given an invalid limit option value: bytes.parse() returns null, which
silently disables request body size enforcement and allows a denial of service
via arbitrarily large payloads. body-parser 2.3.0 (expressjs/body-parser#698)
now throws on an invalid limit at parser initialization instead of ignoring it.

Express's existing ^2.2.1 range technically already permits 2.3.0, but
declaring ^2.3.0 makes the security intent explicit and ensures consumers
(and scanners like Trivy) resolve to the patched release.

Changes

  • package.json: body-parser ^2.2.1^2.3.0
  • History.md: changelog entry under Unreleased → 🚀 Improvements

Testing

  • body-parser-backed middleware tests pass (211 passing): express.json, express.urlencoded, express.raw, express.text.

References

body-parser < 2.3.0 silently disables request body size enforcement
when given an invalid `limit` option value (bytes.parse() returns null),
allowing a denial of service via arbitrarily large payloads
(CVE-2026-12590 / GHSA-v422-hmwv-36x6). 2.3.0 throws on invalid `limit`
values at parser initialization instead of failing open.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@krzysdz krzysdz added the dependencies Pull requests that update a dependency file label Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants