Vulnerability · Published Jul 29, 2024 · Assigned by GitHub_M
CVE-2024-41810HTML injection in HTTP redirect body
Medium 6.1
In plain English
A medium-severity cross-site scripting in twisted from twisted. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | twisted | 22.4.0-4+deb12u1 | DSA-5797-1 |
| Debian:12 | twisted | 22.4.0-4+deb12u1 | DEBIAN-CVE-2024-41810 |
| Debian:13 | twisted | 24.7.0-1 | DEBIAN-CVE-2024-41810 |
| Debian:14 | twisted | 24.7.0-1 | DEBIAN-CVE-2024-41810 |
| PyPI | twisted | 24.7.0rc1 | GHSA-cf56-g6w6-pqq2 |
| PyPI | twisted | 24.7.0rc1 | PYSEC-2024-75 |
| Ubuntu:22.04:LTS | twisted | 22.1.0-2ubuntu2.5 | USN-6988-1 |
| Ubuntu:22.04:LTS | twisted | 22.1.0-2ubuntu2.5 | UBUNTU-CVE-2024-41810 |
| Ubuntu:24.04:LTS | twisted | 24.3.0-1ubuntu0.1 | UBUNTU-CVE-2024-41810 |
| Ubuntu:24.04:LTS | twisted | 24.3.0-1ubuntu0.1 | USN-6988-1 |
Affected products (as reported)
Weakness: CWE-79, CWE-80 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N