Packages

express

5.3.0 · 9 Oct 2026MIT207.4M / weekRepositoryHomepagenpmAtom feed

Your version

4.3.0

21 May 2014Where it was published

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

Release note

  • Add req.baseUrl to access the path stripped from req.url in routes

  • Fix behavior of multiple app.VERB for the same path

  • Fix issue routing requests among sub routers

  • Invoke router.param() only when necessary instead of every match

  • Proper proxy trust with app.set('trust proxy', trust)

    • app.set('trust proxy', 1) trust first hop

    • app.set('trust proxy', 'loopback') trust loopback addresses

    • app.set('trust proxy', '10.0.0.1') trust single IP

    • app.set('trust proxy', '10.0.0.1/16') trust subnet

    • app.set('trust proxy', '10.0.0.1, 10.0.0.2') trust list

    • app.set('trust proxy', false) turn off

    • app.set('trust proxy', true) trust everything

  • Set proper charset in Content-Type for res.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.