CVEfocus › CVE database › CVE-2024-41810

CVE-2024-41810HTML injection in HTTP redirect body

CVSS 6.1 MediumEPSS 1.5% (higher than 74% of CVEs)Published 2024-07-29Updated 2025-11-03Assigner: GitHub_M

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.

CWE-79CWE-80

What to do

Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
3Fix pending
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04twistedFixed24.3.0-1ubuntu0.1UBUNTU-CVE-2024-41810
Ubuntu 22.04twistedFixed22.1.0-2ubuntu2.5UBUNTU-CVE-2024-41810
Ubuntu 20.04twistedFixed18.9.0-11ubuntu0.20.04.4UBUNTU-CVE-2024-41810
Ubuntu 18.04twistedFix pending17.9.0-2ubuntu0.3+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-41810
Ubuntu 16.04twistedFix pending16.0.0-1ubuntu0.4+esm2 (Ubuntu Pro)UBUNTU-CVE-2024-41810
Ubuntu 14.04twistedFix pending13.2.0-1ubuntu1.2+esm3 (Ubuntu Pro)UBUNTU-CVE-2024-41810
Debian 14twistedFixed24.7.0-1DEBIAN-CVE-2024-41810
Debian 13twistedFixed24.7.0-1DEBIAN-CVE-2024-41810
Debian 12twistedFixed22.4.0-4+deb12u1DEBIAN-CVE-2024-41810
Red Hat Enterprise Linux 7python-twisted-webWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twistedWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twisted-webWill not fix
Out of support scope
PyPI librarytwistedFixed24.7.0rc1PYSEC-2024-75

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.