express
5.3.0 · 9 Oct 2026MIT207.4M / weekRepositoryHomepagenpmAtom feed
Upgrading express From 4.2.0 to 4.3.0
1 release in betweenevery note read
Security
3 advisories still affect 4.3.0
- No Charset in Content-Type Header in expressmoderate · GHSA-gpvr-g6gh-9mc2
- express vulnerable to XSS via response.redirect()low · GHSA-qw6h-vgh9-j6wx
- Express.js Open Redirect in malformed URLsmoderate · GHSA-rv95-896h-c2vc
Upgrading to 4.20.0 clears them.
Release by release
- New
Add
req.baseUrlto access the path stripped fromreq.urlin routes - Fixed
Fix behavior of multiple
app.VERBfor the same path - Fixed
Fix issue routing requests among sub routers
- New
3 other lines we could not sort, mostly version bumps
- 4.3.0
Invoke
router.param()only when necessary instead of every match - 4.3.0
Proper proxy trust with
app.set('trust proxy', trust) - 4.3.0
Set proper
charsetinContent-Typeforres.send
1 internal line (docs, tests, tooling) left out.
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.