{"id":"CVE-2024-43796","published":"2024-09-10T14:36:27Z","modified":"2024-09-10T15:58:45Z","title":"express vulnerable to XSS via response.redirect()","vendor":"expressjs","product":"express","tier":"tail","description":{"text":"Express.js minimalist web framework for node. In express < 4.20.0, passing untrusted user input - even after sanitizing it - to response.redirect() may execute untrusted code. This issue is patched in express 4.20.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00486,"percentile":0.42773,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/expressjs/express/security/advisories/GHSA-qw6h-vgh9-j6wx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/expressjs/express/commit/54271f69b511fea198471e6ff3400ab805d6b553","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":8.55},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"expressjs","affectedVersions":[{"vendor":"expressjs","product":"express","versions":["< 4.20.0",">= 5.0.0-alpha.1, < 5.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T15:58:36.256748Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"express","vulnerableRanges":["<4.20.0",">=5.0.0-alpha.1, <5.0.0"],"patched":["4.20.0","5.0.0"],"from":["GHSA-qw6h-vgh9-j6wx"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting weakness in the response.redirect() function of the express web framework, versions before 4.20.0, where untrusted user input passed to that function, even after sanitization, may cause untrusted code to execute. An attacker can exploit this over the network without authentication, but it requires a user to interact with the crafted link or page, and it only applies when the application passes untrusted input to response.redirect().","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:09Z"},"euvd":{"id":"EUVD-2024-2859","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-expressjs-express-cve-2024-29041","parents":[{"from":"CVE-2024-29041","to":"CVE-2024-43796","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:express","fromFixed":"4.19.2","toFixed":"4.20.0","daysApart":169},{"kind":"version-step","provenance":"source","package":"npm:express","fromFixed":"5.0.0-beta.3","toFixed":"5.0.0","daysApart":169},{"kind":"same-code","provenance":"machine","files":["lib/response.js"],"commits":["https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd","https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94","https://github.com/expressjs/express/commit/54271f69b511fea198471e6ff3400ab805d6b553"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-9266","published":"2024-10-03","fixed":"4.0.0-rc1","kev":false},{"cve":"CVE-2014-6393","published":"2017-08-09","fixed":"4.5.0","kev":false},{"cve":"CVE-2024-29041","published":"2024-03-25","fixed":"5.0.0-beta.3","kev":false},{"cve":"CVE-2024-43796","published":"2024-09-10","fixed":"5.0.0","kev":false}],"package":"npm:express"}}