express
5.3.0 · 9 Oct 2026MIT207.4M / weekRepositoryHomepagenpmAtom feed
Upgrading express From 4.1.2 to 4.2.0
1 release in betweenevery note read
- 3
- changes to make
- 0
- advisories fixed
- 1
- new
- 1
- fix
Before you upgrade
Tick each one off as you go- Deprecated4.2.0
- Deprecated4.2.0
- Deprecated4.2.0
Security
3 advisories still affect 4.2.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
- Deprecated
Deprecate
app.del()-- useapp.delete()instead - Deprecated
Deprecate
res.json(obj, status)-- useres.json(status, obj)instead - Deprecated
Deprecate
res.jsonp(obj, status)-- useres.jsonp(status, obj)instead - New
Support PURGE method
- Fixed
Fix
req.nextwhen inside router instance
- Deprecated
2 other lines we could not sort, mostly version bumps
- 4.2.0
Include
ETagheader inHEADrequests - 4.2.0
Keep previous
Content-Typeforres.jsonp
2 internal lines (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.