PyPI: twisted
CVE-2024-41810
Safety vulnerability ID: SFTY-20240729-32631
Safety legacy ID: pyup.io-73795
Affected versions of Twisted are vulnerable to XSS. 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.
Overview
Twisted vulnerable to HTML injection in HTTP redirect body
Advisory
Affected versions of Twisted are vulnerable to XSS. 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.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20240729-32631/CVE-2024-41810
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-41810
- https://github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2
- https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33
- https://nvd.nist.gov/vuln/detail/CVE-2024-41810
- https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2024-75.yaml
- https://lists.debian.org/debian-lts-announce/2024/11/msg00028.html
- https://github.com/advisories/GHSA-cf56-g6w6-pqq2
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
