CVE-2024-41810
MEDIUM6.1EPSS 67.8%Twisted vulnerable to HTML injection in HTTP redirect body
Published: 7/29/2024Modified: 4/28/2026
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.
Affected packages (3)
- Debian/twistedfrom 0, < 20.3.0-7+deb11u2
- PyPI/twistedfrom 0, < 24.7.0rc1
- PyPI/twistedfrom 0, < 046a164f89a0f08d3239ecebd750360f8914df33 | from 0, < 24.7.0rc1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-41810
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-41810
- PATCHhttps://github.com/twisted/twisted
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2024-75.yaml
- WEBhttps://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33
- WEBhttps://github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2
- WEBhttps://lists.debian.org/debian-lts-announce/2024/11/msg00028.html