express
5.3.0 · 9 Oct 2026MIT207.4M / weekRepositoryHomepagenpmAtom feed
4.22.3 is the newest release of 4.x.
In short
3 deprecated1 new1 fixed2 changed2 internal
- 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
Security
3 advisories affect 4.2.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
- Deprecated
Deprecate
app.del()-- useapp.delete()instead - Deprecated
Deprecate
res.json(obj, status)-- useres.json(status, obj)insteadthe edge-case
res.json(status, num)requiresres.status(status).json(num)
- Deprecated
Deprecate
res.jsonp(obj, status)-- useres.jsonp(status, obj)insteadthe edge-case
res.jsonp(status, num)requiresres.status(status).jsonp(num)
Fix
req.nextwhen inside router instanceInclude
ETagheader inHEADrequestsKeep previous
Content-Typeforres.jsonpSupport PURGE method
add
app.purgeadd
router.purgeinclude PURGE in
app.all
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.