GHSA-rv95-896h-c2vc · Severity: medium · Ecosystem: npm — Express.js Open Redirect in malformed URLs
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.
Conclusion & alert: CVE-2024-29041 is rated Low Risk (36.9/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.15%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-23 | 0.11% | 0.15% | +0.04% |
| 2 | 2026-05-22 | 0.15% | 0.11% | -0.04% |
| 3 | 2026-04-13 | — | 0.15% | — |
Full EPSS history (12 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
GHSA-rv95-896h-c2vc · Severity: medium · Ecosystem: npm — Express.js Open Redirect in malformed URLs
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2024-29041 not yet assigned priority: Debian including 1 source packages (node-express), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 3, open 2. | https://security-tracker.debian.org/tracker/CVE-2024-29041 |
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2024-29041 |
ubuntu
|
medium | CVE-2024-29041 medium priority: Ubuntu including 1 source packages (node-express), 10 status rows across 10 suites (bionic, focal, jammy, mantic, noble, oracular, plucky, questing, upstream, xenial): not-affected 4, released 4, ignored 1, needs-triage 1. | https://ubuntu.com/security/CVE-2024-29041 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| openjsf | express | < 4.19.2 | cpe:2.3:a:openjsf:express:*:*:*:*:*:node.js:*:* |
| openjsf | express | 5.0.0 | cpe:2.3:a:openjsf:express:5.0.0:alpha1:*:*:*:node.js:*:* |
| openjsf | express | 5.0.0 | cpe:2.3:a:openjsf:express:5.0.0:alpha2:*:*:*:node.js:*:* |
| openjsf | express | 5.0.0 | cpe:2.3:a:openjsf:express:5.0.0:alpha3:*:*:*:node.js:*:* |
| openjsf | express | 5.0.0 | cpe:2.3:a:openjsf:express:5.0.0:alpha4:*:*:*:node.js:*:* |
| openjsf | express | 5.0.0 | cpe:2.3:a:openjsf:express:5.0.0:alpha5:*:*:*:node.js:*:* |
| openjsf | express | 5.0.0 | cpe:2.3:a:openjsf:express:5.0.0:alpha6:*:*:*:node.js:*:* |
| openjsf | express | 5.0.0 | cpe:2.3:a:openjsf:express:5.0.0:alpha7:*:*:*:node.js:*:* |
| openjsf | express | 5.0.0 | cpe:2.3:a:openjsf:express:5.0.0:alpha8:*:*:*:node.js:*:* |
| openjsf | express | 5.0.0 | cpe:2.3:a:openjsf:express:5.0.0:beta1:*:*:*:node.js:*:* |
| openjsf | express | 5.0.0 | cpe:2.3:a:openjsf:express:5.0.0:beta2:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://expressjs.com/en/4x/api.html#res.location | Technical Description |
| https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd | Patch |
| https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94 | Patch |
| https://github.com/expressjs/express/pull/5539 | Issue Tracking |
| https://github.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc | Patch Vendor Advisory |
| https://github.com/koajs/koa/issues/1800 | Issue Tracking |