Skip to content
OpenAdvisories
Medium · 6.1 Scanner template CVE-2024-41810 EUVD-2024-0167GHSA-cf56-g6w6-pqq2PYSEC-2024-75

HTML injection in HTTP redirect body

Published Jul 29, 2024 · Updated Nov 3, 2025 · 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.

Affected products

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

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform 2 automation-controller-venv-tower 4.5.12-1.el8ap RHSA-2024:7312
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-twisted +1 22.4.0-127.amzn2023.0.4 ALAS2023-2024-746

Azure Linux

ReleasePackageFixed inAdvisory
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.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI twisted < 24.7.0rc1 24.7.0rc1 GHSA-cf56-g6w6-pqq2

Advisories 11

References