express
5.3.0 · 9 Oct 2026MIT207.4M / weekRepositoryHomepagenpmAtom feed
4.22.3 is the newest release of 4.x.
In short
2 deprecated6 new3 fixed3 changed4 internal
- Deprecated
Deprecate things with
depdmodule - Deprecated
Deprecate
req.host-- usereq.hostnameinstead
Security
Fixes 1 advisory that affected 4.4.5
- ModerateNo Charset in Content-Type Header in expressGHSA-gpvr-g6gh-9mc2 · 23 Oct 2018Fixed in 4.5.0
2 advisories affect 4.5.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
Add deprecation message to non-plural
req.accepts*Add deprecation message to
res.send(body, status)Add deprecation message to
res.vary()Add
headersoption tores.sendfileuse to set headers on successful file transfer
Add
mergeParamsoption toRoutermerges
req.paramsfrom parent routes
Add
req.hostname-- correct name for whatreq.hostreturns- Deprecated
Deprecate things with
depdmodule - Deprecated
Deprecate
req.host-- usereq.hostnameinstead Fix behavior when handling request without routes
Fix handling when
route.allis only routeInvoke
router.param()only when route matchesRestore
req.paramsafter invoking routerUse
finalhandlerfor final response handlingUse
media-typerto alter content-type charset
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.