Vulnerability
CVE-2024-29041
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.
42 advisories report this vulnerability, across 7 ecosystems.
Advisories
-
AZL-37137
CVE-2024-29041 affecting package reaper for versions less than 3.1.1-9
-
AZL-43690
CVE-2024-29041 affecting package nodejs-nodemon 2.0.3-4
-
AZL-44361
CVE-2024-29041 affecting package nodejs-nodemon 2.0.3-5
- CGA-246g-68px-6v33
- CGA-2p45-hw3w-26pc
- CGA-56v2-q689-3hv9
- CGA-5fpp-75wg-fmm4
- CGA-622c-cc9v-q3vf
- CGA-6742-8crj-wwr7
- CGA-6hvp-g4jh-44ff
- CGA-756v-hfwh-p9hp
- CGA-84h8-pp2w-7fx9
- CGA-89rf-97cj-9p8w
- CGA-92xx-3cm3-5634
- CGA-c9p3-3w5r-65rw
- CGA-c9ph-hj5p-43p3
- CGA-cm4h-8xhh-p3gr
- CGA-cwcg-g23v-f3px
- CGA-f98j-9x78-6x7v
- CGA-g83x-9p87-924g
- CGA-gv53-x7hr-h8p4
- CGA-hx79-rh8r-fgj4
- CGA-mcjp-j8rf-rmxv
- CGA-mcvj-8xhg-p4m5
- CGA-mrv8-hrv6-vc5q
- CGA-mwjf-vpj8-q3rj
- CGA-pgp7-4h34-3mj2
- CGA-qm4x-p2qv-c5wv
- CGA-qq9w-h6c2-h25m
- CGA-r6qr-m3xr-gvjj
- CGA-rfw3-hjf4-x7jm
- CGA-rgjh-r7x8-rvvm
- CGA-rmmj-v9m9-cpp7
- CGA-rvqg-82qv-w7m2
- CGA-vhrc-r5jm-frgh
- CGA-vpp6-665c-vffj
- CGA-x9hf-6996-j9gm
-
DEBIAN-CVE-2024-29041
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…
-
GHSA-rv95-896h-c2vc
Express.js Open Redirect in malformed URLs
-
RHVEX-CVE-2024-29041
express: cause malformed URLs to be evaluated
-
UBUNTU-CVE-2024-29041
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…
-
USN-7581-1
node-express vulnerabilities
References
- https://expressjs.com/en/4x/api.html#res.location
- https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd
- https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94
- https://github.com/expressjs/express/pull/5539
- https://github.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc
- https://github.com/koajs/koa/issues/1800