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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| twisted | twisted | <= 24.3.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | twisted | 24.7.0-1 | — |
| Debian 13 | twisted | 24.7.0-1 | — |
| Debian 12 | twisted | 22.4.0-4+deb12u1 | DSA-5797-1 |
| Debian 11 | twisted | 20.3.0-7+deb11u2 | DLA-3970-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | twisted | 24.3.0-1ubuntu0.1 | USN-6988-1 |
| Ubuntu 22.04 LTS | twisted | 22.1.0-2ubuntu2.5 | USN-6988-1 |
| Ubuntu 20.04 LTS | twisted | 18.9.0-11ubuntu0.20.04.4 | USN-6988-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | twisted | 17.9.0-2ubuntu0.3+esm1 | USN-6988-1 |
| Ubuntu Pro 16.04 LTS | twisted | 16.0.0-1ubuntu0.4+esm2 | USN-6988-1 |
| Ubuntu Pro 14.04 LTS | twisted | 13.2.0-1ubuntu1.2+esm3 | USN-6988-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2 | automation-controller-venv-tower | 4.5.12-1.el8ap | RHSA-2024:7312 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | python3-Twisted | 22.2.0-150400.21.1 | SUSE-SU-2024:2860-1 |
| SLES 15 SP5 | python3-Twisted | 22.2.0-150400.21.1 | SUSE-SU-2024:2860-1 |
| SLES 15 SP4 | python-Twisted | 22.10.0-150400.5.23.1 | SUSE-SU-2024:2880-1 |
| SLES 15 SP4 | python3-Twisted | 22.2.0-150400.21.1 | SUSE-SU-2024:2860-1 |
| SLES 15 SP3 | python-Twisted | 19.10.0-150200.3.24.1 | SUSE-SU-2024:2757-1 |
| SLES 15 SP2 | python-Twisted | 19.10.0-150200.3.24.1 | SUSE-SU-2024:2757-1 |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 | python-Twisted | 15.2.1-9.26.1 | SUSE-SU-2024:2732-1 |
| SLES 3 | python-Twisted | 22.10.0-150400.5.23.1 | SUSE-SU-2024:2880-1 |
| SLES for SAP 15 SP4 | python-Twisted | 22.10.0-150400.5.23.1 | SUSE-SU-2024:2880-1 |
| SLES for SAP 15 SP4 | python3-Twisted | 22.2.0-150400.21.1 | SUSE-SU-2024:2860-1 |
| SLES for SAP 15 SP3 | python-Twisted | 19.10.0-150200.3.24.1 | SUSE-SU-2024:2757-1 |
| SLES for SAP 15 SP2 | python-Twisted | 19.10.0-150200.3.24.1 | SUSE-SU-2024:2757-1 |
| SLE HPC 15 SP4 | python-Twisted | 22.10.0-150400.5.23.1 | SUSE-SU-2024:2880-1 |
| SLE HPC 15 SP4 | python3-Twisted | 22.2.0-150400.21.1 | SUSE-SU-2024:2860-1 |
| SLE HPC 15 SP3 | python-Twisted | 19.10.0-150200.3.24.1 | SUSE-SU-2024:2757-1 |
| SLE HPC 15 SP2 | python-Twisted | 19.10.0-150200.3.24.1 | SUSE-SU-2024:2757-1 |
| SUSE Manager Server 4.3 | python3-Twisted | 22.2.0-150400.21.1 | SUSE-SU-2024:2860-1 |
| SUSE Manager Proxy 4.3 | python3-Twisted | 22.2.0-150400.21.1 | SUSE-SU-2024:2860-1 |
| SUSE Enterprise Storage 7.1 | python-Twisted | 19.10.0-150200.3.24.1 | SUSE-SU-2024:2757-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Twisted | 24.3.0-2.1 | openSUSE-SU-2024:14236-1 |
| openSUSE Leap 15.6 | python-Twisted | 22.10.0-150400.5.23.1 | SUSE-SU-2024:2880-1 |
| openSUSE Leap 15.5 | python-Twisted | 22.10.0-150400.5.23.1 | SUSE-SU-2024:2880-1 |
| openSUSE Leap 15.5 | python3-Twisted | 22.2.0-150400.21.1 | SUSE-SU-2024:2860-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | python3-twisted +1 | 22.4.0-127.amzn2023.0.4 | ALAS2023-2024-746 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python-twisted | 22.10.0-3 | — |
| Azure Linux 2 (CBL-Mariner) | python-twisted | 22.10.0-3 | — |
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Twisted - Open Redirect & XSS http/cves/2024/CVE-2024-41810.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | twisted | < 24.7.0rc1 | 24.7.0rc1 | GHSA-cf56-g6w6-pqq2 |
Advisories 11
- RHSA-2024:7312 Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- USN-6988-1 twisted vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- DSA-5797-1 twisted - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3970-1 twisted - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2024-2229 Red Hat Ansible Automation Platform: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 8, 2026
- openSUSE-SU-2024:14236-1 python-Twisted-doc-24.3.0-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2880-1 Security update for python-Twisted SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2732-1 Security update for python-Twisted SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2757-1 Security update for python-Twisted SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2860-1 Security update for python3-Twisted SUSE / openSUSE Security Updates · May 2, 2025
- ALAS2023-2024-746 Moderate: python-twisted security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 31, 2024