express
5.3.0 · 9 Oct 2026MIT207.4M / weekRepositoryHomepagenpmAtom feed
4.22.3 is the newest release of 4.x.
In short
1 deprecated2 new2 faster2 fixed4 changed7 internal
- Deprecated
Deprecate
res.redirect(url, status)-- useres.redirect(status, url)instead
Security
2 advisories affect 4.6.0; 4.20.0 fixes them
- ModerateExpress.js Open Redirect in malformed URLsGHSA-rv95-896h-c2vc · 25 Mar 2024Fixed in 4.19.2
- Lowexpress vulnerable to XSS via response.redirect()GHSA-qw6h-vgh9-j6wx · 10 Sep 2024Fixed in 4.20.0
Release note
Accept multiple callbacks to
app.use()Add explicit "Rosetta Flash JSONP abuse" protection
previous versions are not vulnerable; this is just explicit protection
Catch errors in multiple
req.param(name, fn)handlers- Deprecated
Deprecate
res.redirect(url, status)-- useres.redirect(status, url)instead Fix
res.send(status, num)to sendnumas json (not error)Remove unnecessary escaping when
res.jsonpreturns JSON responseSupport non-string
pathinapp.use(path, fn)supports array of paths
supports
RegExp
router: Fix optimization on router exit
router: Refactor location of
tryblocksrouter: Speed up standard
app.use(fn)Fix arguments reassign deopt in some
resmethods
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.