CVE-2024-41810: Twisted Vulnerable to HTML Injection
Affects twistedSource GCVE Database
Not known to be exploited · public detection template (Nuclei) · CVSS 6.1 Medium : upgrade to 24.7.0rc1 when convenient.
Data as of 31 Oct 2026, 01:25 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 6.1 |
|---|
- Patch
- Available – fixed in 24.7.0rc1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 29 Jul 2024
Detectable: evidence found.
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade twisted to 24.7.0rc1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPItwisted | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in Twisted version 24.7.0rc1 that addresses this vulnerability. Users should upgrade to this version or later to remediate the issue. If upgrading is not immediately possible, ensure that application code does not allow attacker-controlled input to be passed unchecked to redirectTo, effectively preventing open redirect scenarios.
Description
The Twisted web framework's redirectTo function has an HTML injection vulnerability that can lead to reflected cross-site scripting (XSS) if an attacker controls the redirect URL. This occurs because the redirect URL is reflected in the HTML body of the HTTP 302 response without proper encoding. The vulnerability is exploitable primarily in Firefox browsers due to their handling of redirect responses. Successful exploitation allows execution of arbitrary JavaScript in the victim's session context, potentially leading to unauthorized access or actions. A fix is available in version 24.7.0rc1.
References
- github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-41810 (opens in a new tab)
- github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2024-75.yaml (opens in a new tab)
- github.com/twisted/twisted (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/11/msg00028.html (opens in a new tab)