CVE-2024-41810HTML injection in HTTP redirect body
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | twisted | Fixed | 24.3.0-1ubuntu0.1 | UBUNTU-CVE-2024-41810 |
| Ubuntu 22.04 | twisted | Fixed | 22.1.0-2ubuntu2.5 | UBUNTU-CVE-2024-41810 |
| Ubuntu 20.04 | twisted | Fixed | 18.9.0-11ubuntu0.20.04.4 | UBUNTU-CVE-2024-41810 |
| Ubuntu 18.04 | twisted | Fix pending | 17.9.0-2ubuntu0.3+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-41810 |
| Ubuntu 16.04 | twisted | Fix pending | 16.0.0-1ubuntu0.4+esm2 (Ubuntu Pro) | UBUNTU-CVE-2024-41810 |
| Ubuntu 14.04 | twisted | Fix pending | 13.2.0-1ubuntu1.2+esm3 (Ubuntu Pro) | UBUNTU-CVE-2024-41810 |
| Debian 14 | twisted | Fixed | 24.7.0-1 | DEBIAN-CVE-2024-41810 |
| Debian 13 | twisted | Fixed | 24.7.0-1 | DEBIAN-CVE-2024-41810 |
| Debian 12 | twisted | Fixed | 22.4.0-4+deb12u1 | DEBIAN-CVE-2024-41810 |
| Red Hat Enterprise Linux 7 | python-twisted-web | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | python-twisted | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | python-twisted-web | Will not fix Out of support scope | ||
| PyPI library | twisted | Fixed | 24.7.0rc1 | PYSEC-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.
- twisted: affected: <= 24.3.0
References
- https://github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2
- https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33
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.