{"id":"CVE-2024-41810","state":"PUBLISHED","title":"HTML injection in HTTP redirect body","description":"Twisted is an event-based framework for internet applications, supporting Python 3.6+. The `twisted.web.util.redirectTo` function contains an HTML injection vulnerability. If application code allows an attacker to control the redirect URL this vulnerability may result in Reflected Cross-Site Scripting (XSS) in the redirect response HTML body. This vulnerability is fixed in 24.7.0rc1.","publishedAt":"2024-07-29T15:41:40.289Z","updatedAt":"2025-11-03T22:01:01.094Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["twisted twisted"],"affected":[{"vendor":"twisted","product":"twisted","versions":[{"version":"<= 24.3.0","status":"affected"}]}],"references":["https://github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2","https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33","https://lists.debian.org/debian-lts-announce/2024/11/msg00028.html"],"weaknesses":["CWE-79","CWE-80"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/41xxx/CVE-2024-41810.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-41810","state":"PUBLISHED","datePublished":"2024-07-29T15:41:40.289Z","dateUpdated":"2025-11-03T22:01:01.094Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-07-22T13:57:37.136Z"},"containers":{"cna":{"title":"HTML injection in HTTP redirect body","descriptions":[{"lang":"en","value":"Twisted is an event-based framework for internet applications, supporting Python 3.6+. The `twisted.web.util.redirectTo` function contains an HTML injection vulnerability. If application code allows an attacker to control the redirect URL this vulnerability may result in Reflected Cross-Site Scripting (XSS) in the redirect response HTML body. This vulnerability is fixed in 24.7.0rc1."}],"affected":[{"vendor":"twisted","product":"twisted","versions":[{"version":"<= 24.3.0","status":"affected"}]}],"references":[{"url":"https://github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2","name":"https://github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33","name":"https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","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"}]},{"descriptions":[{"cweId":"CWE-80","lang":"en","description":"CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-07-29T15:41:40.289Z"},"source":{"advisory":"GHSA-cf56-g6w6-pqq2","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"twistedmatrix","product":"twisted","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"24.3.0","versionType":"custom"}],"cpes":["cpe:2.3:a:twistedmatrix:twisted:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-07-29T16:39:25.608484Z","id":"CVE-2024-41810","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-29T16:42:19.291Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2","name":"https://github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33","name":"https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00028.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:01:01.094Z"}}]}}}