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: 2024-03-25 Last update: 2025-12-18 Assigner: [email protected] Source: [email protected]

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.

Exploit prediction scoring system (EPSS) score for CVE-2024-29041

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)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-29041

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.1 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 2.7 [email protected]

Weakness enumeration for CVE-2024-29041

GitHub Security Advisory for CVE-2024-29041

GHSA-rv95-896h-c2vc · Severity: medium · Ecosystem: npm — Express.js Open Redirect in malformed URLs

OS Trackers for CVE-2024-29041

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

Affected software / configurations for 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:*:*

References for CVE-2024-29041

cvelogic Threat Intelligence