Packages

express

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

Upgrading express From 4.22.2 to 5.3.0

7 releases in betweenevery note read

Other targets from 4.22.2Newest 4.x4.22.3
  1. 4.22.2yours
  2. 4.22.3security
  3. 5.0.0security
  4. 5.0.1security
  5. 5.1.0security
  6. 5.2.0security
  7. 5.2.1security
  8. 5.3.0target

Start here

Before you upgrade

Tick each one off as you go
  • Breaking5.2.1
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Deprecated5.2.0

Security

  • Upgrade qs to ^6.16.0, which fixes CVE-2026-2391 (GHSA-w7fw-mjwx-w883), CVE-2026-82417 (GHSA-4mjr-xmp4-gh2g) and CVE-2026-82562 (GHSA-x5fp-wj9c-mxmx): arrayLimit bypasses in comma parsing and a denial of service via an attacker-controlled isBuffer

    5.3.0
  • Upgrade proxy-addr to ^2.0.8, which fixes CVE-2026-90711

    5.3.0
  • Upgrade body-parser to ^2.3.0, which fixes CVE-2026-12590 (GHSA-v422-hmwv-36x6): an invalid limit option value caused request body size enforcement to be silently disabled (fail-open), allowing a denial of service via arbitrarily large payloads. Invalid limit values now throw at parser initialization instead of being ignored

    5.3.0
  • There is no actual security vulnerability associated with this behavior (CVE-2024-51999 has been rejected).

    5.2.1
  • 5.2.0
  • Upgrade body-parser to 2.2.1 to address CVE-2025-13466

    5.2.0
  • securite: Fix vulnerabilities

    5.1.0
  • Update cookie semver lock to address CVE-2024-47764

    5.0.1
  • Routing changes: Updated to path-to-regexp@8.x, removing sub-expression regex patterns for security reasons (ReDoS mitigation).

    5.0.0
  • This release includes important security fixes, including improvements to prevent ReDoS attacks and mitigation for CVE-2024-45590.

    5.0.0

Release by release

  1. 5.3.0

    Security fix9 Oct 20267 new · 1 fix
    • Security

      Upgrade qs to ^6.16.0, which fixes CVE-2026-2391 (GHSA-w7fw-mjwx-w883), CVE-2026-82417 (GHSA-4mjr-xmp4-gh2g) and CVE-2026-82562 (GHSA-x5fp-wj9c-mxmx): arrayLimit bypasses in comma parsing and a denial of service via an attacker-controlled isBuffer

    • Security

      Upgrade proxy-addr to ^2.0.8, which fixes CVE-2026-90711

    • Security

      Upgrade body-parser to ^2.3.0, which fixes CVE-2026-12590 (GHSA-v422-hmwv-36x6): an invalid limit option value caused request body size enforcement to be silently disabled (fail-open), allowing a denial of service via arbitrarily large payloads. Invalid limit values now throw at parser initialization instead of being ignored

    • New

      Allow conditional revalidation for QUERY requests. req.fresh previously only validated freshness for GET and HEAD requests, so QUERY responses never returned 304 despite a matching validator. Since QUERY is a safe, idempotent, and cacheable method that supports conditional requests, it is now included in the freshness check

  2. 5.2.1

    Security fix1 Dec 2025
    • Security

      There is no actual security vulnerability associated with this behavior (CVE-2024-51999 has been rejected).

    • Breaking

      The prior release (5.2.0) included an erroneous breaking change related to the extended query parser.

  3. 5.2.0

    Security fix1 Dec 20251 new
    • Security
    • Security

      Upgrade body-parser to 2.2.1 to address CVE-2025-13466

    • Deprecated

      Add deprecation warnings for redirect arguments undefined

    • New

      lint: Add --fix flag to automatic fix linting issue

  4. 5.1.0

    Security fix31 Mar 20255 new · 6 fixes
    • Security

      securite: Fix vulnerabilities

    • New

      Add funding field (v5)

    • New

      Add bjohansebas as repo captain for expressjs.com

    • New

      Add support for OSSF scorecard reporting

  5. 5.0.1

    Security fix8 Oct 2024
    • Security

      Update cookie semver lock to address CVE-2024-47764

  6. 5.0.0

    Security fix10 Sep 2024
    • Security

      Routing changes: Updated to path-to-regexp@8.x, removing sub-expression regex patterns for security reasons (ReDoS mitigation).

    • Security

      This release includes important security fixes, including improvements to prevent ReDoS attacks and mitigation for CVE-2024-45590.

    • Breaking

      Node.js version support: Dropped support for Node.js versions before v18.

    • Breaking

      Deprecated API methods removed: Removed old, deprecated API method signatures from Express v3/v4.

    • Breaking

      For a complete list of breaking changes and API deprecations, see the migration guide.

  7. 4.22.3

    Security fix14 Sep 20261 new
    • Security

      Update path-to-regexp to 0.1.13 to fix CVE-2026-4867

    • New

      Allow conditional revalidation for QUERY requests (v4)

26 other lines we could not sort, mostly version bumps
  • Increased code coverage of utils.js file

    5.2.0
  • lib: Use req.socket over deprecated req.connection

    5.2.0
  • Remove history.md from being packaged on publish

    5.2.0
  • Nominate to @efekrskl for triage team

    5.2.0
  • Update captains

    5.1.0
  • ✅ add discarded middleware test

    5.1.0
  • Update homepage link http to https

    5.1.0
  • Improve readme

    5.1.0
  • Remove Object.setPrototypeOf polyfill

    5.1.0
  • cleanup: Remove promise support check from tests

    5.1.0

82 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.