CVE-2024-29041
CVE-2024-29041 — 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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
6.1
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.1 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-601
- CWE-1286
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching //github.com/pillarjs/encodeurl).
References
6 on the record
- github.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc
x_refsource_CONFIRM
- github.com/koajs/koa/issues/1800
x_refsource_MISC
- github.com/expressjs/express/pull/5539
x_refsource_MISC
- github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd
x_refsource_MISC
- github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94
x_refsource_MISC
- expressjs.com/en/4x/api.html#res.location
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-34909 Ubiquiti UniFi OS Path Traversal VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2026-111771 Model Context Protocol TypeScript SDK: Server bearer authentication accepted tokens issued for another serviceCVSS 6.8
- CVE-2021-38000 Google Chromium Intents Improper Input Validation VulnerabilityCVSS 6.1 · CISA KEV
- CVE-2012-0518 Oracle Fusion Middleware Unspecified VulnerabilityCVSS 4.7 · CISA KEV
- CVE-2026-8323 Open Redirect in Armiya Information Technologies' Access Control SystemCVSS 9.3
- CVE-2025-4123 A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open redirectCVSS 6.1
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.