6.1
MEDIUM
CVE-2024-29041
Express.js Open Redirect 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.

INFO

Published Date :

March 25, 2024, 9:15 p.m.

Last Modified :

March 26, 2024, 12:55 p.m.

Remotely Exploitable :

Yes !

Impact Score :

2.7

Exploitability Score :

2.8
Public PoC/Exploit Available at Github

CVE-2024-29041 has a 3 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2024-29041 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Dockerfile JavaScript

Updated: 4 weeks, 2 days ago
1 stars 0 fork 0 watcher
Born at : Oct. 1, 2024, 9:22 a.m. This repo has been linked 7 different CVEs too.

Audio transcription tool using advanced speech recognition APIs to accurately convert spoken language into text.

HTML JavaScript EJS

Updated: 4 months ago
0 stars 0 fork 0 watcher
Born at : May 24, 2024, 7:26 p.m. This repo has been linked 1 different CVEs too.

None

HTML JavaScript CSS TypeScript

Updated: 4 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : Jan. 16, 2024, 6:55 a.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-29041 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-29041 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Received by [email protected]

    Mar. 25, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference GitHub, Inc. https://github.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc [No types assigned]
    Added Reference GitHub, Inc. https://github.com/koajs/koa/issues/1800 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/expressjs/express/pull/5539 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd [No types assigned]
    Added Reference GitHub, Inc. https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94 [No types assigned]
    Added Reference GitHub, Inc. https://expressjs.com/en/4x/api.html#res.location [No types assigned]
    Added CWE GitHub, Inc. CWE-601
    Added CWE GitHub, Inc. CWE-1286
    Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-29041 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-29041 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability