CVE-2024-29041
Express.js Open Redirect in malformed URLs
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
El framework web minimalista Express.js para node. Las versiones de Express.js anteriores a 4.19.0 y todas las versiones alfa y beta preliminares de 5.0 se ven afectadas por una vulnerabilidad de redireccionamiento abierto que utiliza URL con formato incorrecto. Cuando un usuario de Express realiza una redirección utilizando una URL proporcionada por el usuario, Express realiza una codificación [usando `encodeurl`](https://github.com/pillarjs/encodeurl) en el contenido antes de pasarlo al encabezado de `ubicación`. Esto puede hacer que las URL con formato incorrecto se evalúen de maneras inesperadas mediante implementaciones de listas permitidas de redireccionamiento común en aplicaciones Express, lo que lleva a una redirección abierta al omitir una lista permitida implementada correctamente. El método principal afectado es `res.location()` pero también se llama desde `res.redirect()`. La vulnerabilidad se solucionó en 4.19.2 y 5.0.0-beta.3.
A flaw was found in the Express.js minimalist web framework for node. Versions of Express.js before 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 issue 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 Scores
SSVC
- Decision:Track
Timeline
- 2024-03-14 CVE Reserved
- 2024-03-25 CVE Published
- 2024-03-26 EPSS Updated
- 2024-08-02 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
- CWE-1286: Improper Validation of Syntactic Correctness of Input
CAPEC
References (8)
URL | Tag | Source |
---|---|---|
https://expressjs.com/en/4x/api.html#res.location | X_refsource_misc | |
https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd | X_refsource_misc | |
https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94 | X_refsource_misc | |
https://github.com/expressjs/express/pull/5539 | X_refsource_misc | |
https://github.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc | X_refsource_confirm | |
https://github.com/koajs/koa/issues/1800 | X_refsource_misc |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2024-29041 | 2024-10-03 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2290901 | 2024-10-03 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Expressjs Search vendor "Expressjs" | Express Search vendor "Expressjs" for product "Express" | >= 4.14.0 < 4.19.0 Search vendor "Expressjs" for product "Express" and version " >= 4.14.0 < 4.19.0" | en |
Affected
| ||||||
Expressjs Search vendor "Expressjs" | Express Search vendor "Expressjs" for product "Express" | 5.0.0 Search vendor "Expressjs" for product "Express" and version "5.0.0" | en |
Affected
|