express
5.3.0 · 9 Oct 2026MIT207.4M / weekRepositoryHomepagenpmAtom feed
Upgrading express From 4.17.2 to 5.3.0
22 releases in betweenevery note read
Start here
Before you upgrade
Tick each one off as you go- Breaking5.2.1
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking4.22.1
- Deprecated5.2.0
- Deprecated4.21.0
- Deprecated4.20.0
Security
Fixes 2 advisories affecting 4.17.2
- express vulnerable to XSS via response.redirect()low · GHSA-qw6h-vgh9-j6wx
- Express.js Open Redirect in malformed URLsmoderate · GHSA-rv95-896h-c2vc
- 5.3.0
Upgrade
qsto^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):arrayLimitbypasses in comma parsing and a denial of service via an attacker-controlledisBuffer - 5.3.0
Upgrade
proxy-addrto^2.0.8, which fixes CVE-2026-90711 - 5.3.0
Upgrade
body-parserto^2.3.0, which fixes CVE-2026-12590 (GHSA-v422-hmwv-36x6): an invalidlimitoption value caused request body size enforcement to be silently disabled (fail-open), allowing a denial of service via arbitrarily large payloads. Invalidlimitvalues now throw at parser initialization instead of being ignored - 5.2.1
There is no actual security vulnerability associated with this behavior (CVE-2024-51999 has been rejected).
- 5.2.0
Security fix for CVE-2024-51999 (GHSA-pj86-cfqh-vqx6)
- 5.2.0
Upgrade body-parser to 2.2.1 to address CVE-2025-13466
- 5.1.0
securite: Fix vulnerabilities
- 5.0.1
Update
cookiesemver lock to address CVE-2024-47764 - 5.0.0
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.
Release by release
- Security
Upgrade
qsto^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):arrayLimitbypasses in comma parsing and a denial of service via an attacker-controlledisBuffer - Security
Upgrade
proxy-addrto^2.0.8, which fixes CVE-2026-90711 - Security
Upgrade
body-parserto^2.3.0, which fixes CVE-2026-12590 (GHSA-v422-hmwv-36x6): an invalidlimitoption value caused request body size enforcement to be silently disabled (fail-open), allowing a denial of service via arbitrarily large payloads. Invalidlimitvalues now throw at parser initialization instead of being ignored - New
Allow conditional revalidation for QUERY requests.
req.freshpreviously 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
- Security
- 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.
- Security
- Security
Security fix for CVE-2024-51999 (GHSA-pj86-cfqh-vqx6)
- 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
- Security
- 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
- Security
- Security
Update
cookiesemver lock to address CVE-2024-47764
- Security
- 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.
- Security
- Security
Update path-to-regexp to 0.1.13 to fix CVE-2026-4867
- New
Allow conditional revalidation for QUERY requests (v4)
- Security
- Fixed
Restore >20 array parsing for
req.queryrepeated keys
- Fixed
54 other lines we could not sort, mostly version bumps
- 5.2.0
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.1.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
122 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.