express
5.3.0 · 9 Oct 2026MIT207.4M / weekRepositoryHomepagenpmAtom feed
4.22.3 is the newest release of 4.x.
In short
1 new2 fixed3 changed1 internal
Security
3 advisories affect 4.3.0; 4.20.0 fixes them
- ModerateExpress.js Open Redirect in malformed URLsGHSA-rv95-896h-c2vc · 25 Mar 2024Fixed in 4.19.2
- ModerateNo Charset in Content-Type Header in expressGHSA-gpvr-g6gh-9mc2 · 23 Oct 2018Fixed in 4.5.0
- Lowexpress vulnerable to XSS via response.redirect()GHSA-qw6h-vgh9-j6wx · 10 Sep 2024Fixed in 4.20.0
Release note
Add
req.baseUrlto access the path stripped fromreq.urlin routesFix behavior of multiple
app.VERBfor the same pathFix issue routing requests among sub routers
Invoke
router.param()only when necessary instead of every matchProper proxy trust with
app.set('trust proxy', trust)app.set('trust proxy', 1)trust first hopapp.set('trust proxy', 'loopback')trust loopback addressesapp.set('trust proxy', '10.0.0.1')trust single IPapp.set('trust proxy', '10.0.0.1/16')trust subnetapp.set('trust proxy', '10.0.0.1, 10.0.0.2')trust listapp.set('trust proxy', false)turn offapp.set('trust proxy', true)trust everything
Set proper
charsetinContent-Typeforres.send
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.