{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-29041","published":"2024-03-25T21:15:46.847000Z","last_modified":"2026-06-17T07:22:18.493000Z","status":"Analyzed","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-601","CWE-1286"],"cpes":[{"criteria":"cpe:2.3:a:openjsf:express:*:*:*:*:*:node.js:*:*","part":"a","vendor":"openjsf","product":"express","version_end_excluding":"4.19.2"},{"criteria":"cpe:2.3:a:openjsf:express:5.0.0:alpha1:*:*:*:node.js:*:*","part":"a","vendor":"openjsf","product":"express","version":"5.0.0"},{"criteria":"cpe:2.3:a:openjsf:express:5.0.0:alpha2:*:*:*:node.js:*:*","part":"a","vendor":"openjsf","product":"express","version":"5.0.0"},{"criteria":"cpe:2.3:a:openjsf:express:5.0.0:alpha3:*:*:*:node.js:*:*","part":"a","vendor":"openjsf","product":"express","version":"5.0.0"},{"criteria":"cpe:2.3:a:openjsf:express:5.0.0:alpha4:*:*:*:node.js:*:*","part":"a","vendor":"openjsf","product":"express","version":"5.0.0"},{"criteria":"cpe:2.3:a:openjsf:express:5.0.0:alpha5:*:*:*:node.js:*:*","part":"a","vendor":"openjsf","product":"express","version":"5.0.0"},{"criteria":"cpe:2.3:a:openjsf:express:5.0.0:alpha6:*:*:*:node.js:*:*","part":"a","vendor":"openjsf","product":"express","version":"5.0.0"},{"criteria":"cpe:2.3:a:openjsf:express:5.0.0:alpha7:*:*:*:node.js:*:*","part":"a","vendor":"openjsf","product":"express","version":"5.0.0"},{"criteria":"cpe:2.3:a:openjsf:express:5.0.0:alpha8:*:*:*:node.js:*:*","part":"a","vendor":"openjsf","product":"express","version":"5.0.0"},{"criteria":"cpe:2.3:a:openjsf:express:5.0.0:beta1:*:*:*:node.js:*:*","part":"a","vendor":"openjsf","product":"express","version":"5.0.0"},{"criteria":"cpe:2.3:a:openjsf:express:5.0.0:beta2:*:*:*:node.js:*:*","part":"a","vendor":"openjsf","product":"express","version":"5.0.0"}],"cpes_truncated":false,"vendors":["openjsf"],"products":["openjsf/express"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00921,"percentile":0.58596,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-rv95-896h-c2vc","ecosystem":"npm","name":"express","purl":"pkg:npm/express","ranges":[{"introduced":"0","fixed":"4.19.2"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-rv95-896h-c2vc","ecosystem":"npm","name":"express","purl":"pkg:npm/express","ranges":[{"introduced":"5.0.0-alpha.1","fixed":"5.0.0-beta.3"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2024-29041/","html_en":"/en/cve/CVE-2024-29041/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-29041","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-29041"},"untrusted":{"vendor_name":"Openjsf","product_name":"Express","desc_en":"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.","affected":[{"untrusted_vendor":"expressjs","untrusted_product":"express","versions":[]}],"references":[{"url":"https://expressjs.com/en/4x/api.html#res.location","tags":["Technical Description"]},{"url":"https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd","tags":["Patch"]},{"url":"https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94","tags":["Patch"]},{"url":"https://github.com/expressjs/express/pull/5539","tags":["Issue Tracking"]},{"url":"https://github.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc","tags":["Patch","Vendor Advisory"]},{"url":"https://github.com/koajs/koa/issues/1800","tags":["Issue Tracking"]}]}}