# CVE-2024-41810: HTML injection in HTTP redirect body

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.50%, higher than 75% of CVEs (2026-11-30)
- Published: 2024-07-29T15:41:40.289Z
- Modified: 2026-06-17T07:48:16.593Z
- Also known as: GHSA-cf56-g6w6-pqq2, PYSEC-2024-75
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- twisted twisted: <= 24.3.0; up to 24.3.0
- twistedmatrix twisted: up to 24.3.0
- twisted (PyPI): before 24.7.0rc1; before 046a164f89a0f08d3239ecebd750360f8914df33

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2> (advisory, vendor-advisory, web)
- <https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33> (fix, patch, web)
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00028.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-41810> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2024-75.yaml> (web)
- <https://github.com/twisted/twisted> (package)

## Sources

- CVE List: [CVE-2024-41810](https://www.cve.org/CVERecord?id=CVE-2024-41810), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-cf56-g6w6-pqq2](https://github.com/advisories/GHSA-cf56-g6w6-pqq2), CC-BY-4.0, modified 2025-11-04
- NVD: [CVE-2024-41810](https://nvd.nist.gov/vuln/detail/CVE-2024-41810), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-75](https://osv.dev/vulnerability/PYSEC-2024-75), CC-BY-4.0, modified 2024-09-11

---

Page: https://cve.day/CVE-2024-41810 · Whole record: https://cve.day/CVE-2024-41810.json · Rebuilt by cve.day 2026-11-25T22:58:43.331Z
