Express.js 5.3.0
Express 5.3.0 shipped on October 9, 2026, and it is a security-and-headers release: three dependency upgrades close five CVEs, two response paths get spec-compliant behavior, and a quiet performance win lands in the hot path.
Security Sweep
The headline items are advisory fixes, not features. Four packages move and each one matters.
- qs ^6.16.0: closes CVE-2026-2391, CVE-2026-82417 and CVE-2026-82562. The first is an arrayLimit bypass in comma parsing, the others cover a denial of service through an attacker-controlled isBuffer value.
- proxy-addr ^2.0.8: closes CVE-2026-90711, which affects trusted proxy resolution.
- body-parser ^2.3.0: closes CVE-2026-12590. An invalid limit option silently disabled body size enforcement, failing open to arbitrarily large payloads. Invalid limit values now throw at parser initialization instead of being ignored, so misconfiguration surfaces at boot rather than under attack.
- content-type ^2.0.0: faster parser, roughly 1.5x quicker parsing and formatting in res.send.
Header Hygiene
Two behaviors change in ways you should test against.
First, res.send no longer sets Content-Length when Transfer-Encoding is present. The two headers should not coexist in one response, and the old code could emit both. ETag generation is untouched by Transfer-Encoding.
Second, content-disposition moves to ^2.0.1. File names that are valid HTTP tokens are no longer wrapped in quotes for res.download, res.attachment and res.sendFile. Per RFC 6266 this is equivalent, but any integration test asserting on the exact header bytes will now fail and needs updating.
The content-type upgrade also changes res.send behavior: existing parameters are preserved when the charset is added, and a Content-Type that fails to parse no longer throws.
res.set('Content-Type', 'text/plain; foo=bar').send('hey');
// -> Content-Type: text/plain; foo=bar; charset=utf-8
Cache and Render Wins
- QUERY is now freshness-aware. req.fresh previously only validated GET and HEAD, so QUERY responses never returned 304 despite a matching validator. QUERY is safe, idempotent and cacheable, so it now participates in conditional revalidation.
- res.redirect HTML gets a skeleton: DOCTYPE, title and body tags are emitted when HTML format is accepted, which fixes rendering in stricter browsers.
- app.render with null options now behaves the same as omitting options, instead of erroring on the locals object.
- Default error handler logs the full error object, so Error.cause and library-specific properties such as Sequelize's parent and original are no longer swallowed.
Upgrade Checklist
Bump to [email protected], then grep tests for Content-Disposition assertions and for JSON bodies containing angle brackets in query strings. Check any custom body parser limit values, since invalid ones now throw at startup. Everything else is drop-in.