CVE-2024-29041Express.js Open Redirect in malformed URLs
- 6.1MediumCVSS base score
- 0.79%Exploitation in 30 daysEPSS · top 43% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
Express.js minimalist web framework for node. Versions of Express.js prior to 4.19.0 and all pre-release alpha and beta versions of 5.0 are affected by an open redirect vulnerability using malformed URLs. When a user of Express performs a redirect using a user-provided URL Express performs an encode [using `encodeurl`](https://github.com/pillarjs/encodeurl) on the contents before passing it to the `location` header. This can cause malformed URLs to be evaluated in unexpected ways by common redirect allow list implementations in Express applications, leading to an Open Redirect via bypass of a properly implemented allow list. The main method impacted is `res.location()` but this is also called from within `res.redirect()`. The vulnerability is fixed in 4.19.2 and 5.0.0-beta.3.
Timeline
ID reserved
By GitHub_M
- 11 days later
· 11 days later
Published
- 4 months later
· 4 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVDNVD · Analyzed | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 0.79% · top 43% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.1.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmexpressGHSA-rv95-896h-c2vc (opens in a new tab)
References
References6
- https://github.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/koajs/koa/issues/1800 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/expressjs/express/pull/5539 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94 (opens in a new tab)x_refsource_MISCx_transferred
- https://expressjs.com/en/4x/api.html#res.location (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-1007 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-rv95-896h-c2vc (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-29041)Record last updated .