Home / CVE DB / CVE-2024-29041
Standard
Vulnerability Identifier

CVE-2024-29041

2024-03-25
Severity Assessment
6.1
MEDIUM
CVSS v3.x Score
Clinical Analysis (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.

Vector Sequencing

Attack Parameters

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Impact Consequences

Technical Impact

Changed
Scope
Low
Confidentiality
Low
Integrity
None
Availability
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Classification

CWE-CWE-601

Affected Population

Affected Configurations

Total: 1 detected entries

Software List Scrollable
op
express
Vendor: openjsf • v5.0.0
Timeline

Time Line

PUBLICATION
25 Mar 2024
MODIFICATION
18 Dec 2025
FIRST PATCH
22 Oct 2025
Impact Statistics

Key Metrics

CVSS Score
6.1
MEDIUM
Products
1
Affected
Patches
3
Available
Remediation Protocol

Recommended Solution

No automatic solution found. Check vendor references.
Recommended Actions for Administrators

Immediate Action Plan

1. Inventory

Identify all affected systems in your infrastructure.

2. Assessment

Assess exposure and criticality for your organization.

3. Mitigation

Apply patches or available workarounds.

4. Verification

Test and confirm effectiveness of applied measures.