Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by Mayvis · committed by GitHub · parent a371447 · Browse files · 2 files+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

Diff stats

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:History.md+2 added
42 unmodified lines
43 // before -> Content-Disposition: attachment; filename="user.html"44 // after -> Content-Disposition: attachment; filename=user.html45 ```4647* Upgrade `body-parser` to `^2.3.0`, which fixes [CVE-2026-12590](https://www.cve.org/CVERecord?id=CVE-2026-12590) ([GHSA-v422-hmwv-36x6](https://github.com/expressjs/body-parser/security/advisories/GHSA-v422-hmwv-36x6)): an invalid `limit` option value caused request body size enforcement to be silently disabled (fail-open), allowing a denial of service via arbitrarily large payloads. Invalid `limit` values now throw at parser initialization instead of being ignored4849## ⚡ Performance5051* Avoid duplicate Content-Type header processing in `res.send()` when sending string responses without an explicit Content-Type header - by [@bjohansebas](https://github.com/bjohansebas) in [#6991](https://github.com/expressjs/express/pull/6991)52
3871 unmodified lines
modified:package.json+1 added-1 removed