{"id":"CVE-2024-43796","state":"PUBLISHED","title":"express vulnerable to XSS via response.redirect()","description":"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.","publishedAt":"2024-09-10T14:36:27.380Z","updatedAt":"2024-09-10T15:58:45.956Z","severity":{"score":5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["expressjs express"],"affected":[{"vendor":"expressjs","product":"express","versions":[{"version":"< 4.20.0","status":"affected"},{"version":">= 5.0.0-alpha.1, < 5.0.0","status":"affected"}]}],"references":["https://github.com/expressjs/express/security/advisories/GHSA-qw6h-vgh9-j6wx","https://github.com/expressjs/express/commit/54271f69b511fea198471e6ff3400ab805d6b553"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/43xxx/CVE-2024-43796.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-43796","state":"PUBLISHED","datePublished":"2024-09-10T14:36:27.380Z","dateUpdated":"2024-09-10T15:58:45.956Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-08-16T14:20:37.325Z"},"containers":{"cna":{"title":"express vulnerable to XSS via response.redirect()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"expressjs","product":"express","versions":[{"version":"< 4.20.0","status":"affected"},{"version":">= 5.0.0-alpha.1, < 5.0.0","status":"affected"}]}],"references":[{"url":"https://github.com/expressjs/express/security/advisories/GHSA-qw6h-vgh9-j6wx","name":"https://github.com/expressjs/express/security/advisories/GHSA-qw6h-vgh9-j6wx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/expressjs/express/commit/54271f69b511fea198471e6ff3400ab805d6b553","name":"https://github.com/expressjs/express/commit/54271f69b511fea198471e6ff3400ab805d6b553","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-09-10T14:36:27.380Z"},"source":{"advisory":"GHSA-qw6h-vgh9-j6wx","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-10T15:58:36.256748Z","id":"CVE-2024-43796","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-10T15:58:45.956Z"}}]}}}