DNA View

CVE-2024-29041

Medium
Low Medium High Critical
6.1
CVSS Score
Published: Mar 25, 2024
Last Modified: Dec 18, 2025

Vulnerability 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.

CVSS Metrics

Common Vulnerability Scoring System

Vector String:

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack Vector
N
Attack Complexity
L
Privileges Required
N
User Interaction
R
Scope
C
Confidentiality
L
Integrity
L
Availability
N

Known Affected Software

1 configuration(s) from 1 vendor(s)

express
Version:
5.0.0
CPE:
cpe:2.3:a:openjsf:express:5.0.0:beta1:*:*:*:node.js:*:*
This vulnerability affects 1 software configuration(s). Ensure you patch all affected systems.

Available Security Patches

3 patches available from vendors

View All Patches
Microsoft

2024-Jun-CVE-2024-29041

CVE-2024-29041: None

Severity
Unknown
Released
Oct 22, 2025
Security Update
Microsoft

2024-Mar-CVE-2024-29041

CVE-2024-29041: Express.js Open Redirect in malformed URLs

Severity
Unknown
Released
Sep 04, 2025
Security Update
Oracle

CPUJAN2025

Oracle Critical Patch Update Advisory - January 2025

Severity
Critical
Released
Jan 21, 2025
Restart Required
Security Update

Severity Details

6.1
out of 10.0
Medium

Weakness Type (CWE)

CWE-601

URL Redirection to Untrusted Site ('Open Redirect')

Description
The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.
Exploit Likelihood
Low
Typical Severity
High
Abstraction Level
Base

Key Information

Published Date
March 25, 2024