Skip to main content
VulnerabilityPublished Updated

CVE-2024-41810: Twisted Vulnerable to HTML Injection

Affects twistedSource GCVE Database

0
Compare
Authoritative record:CVE-2024-41810· Medium 6.1

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

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.16.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Jul 2024

  2. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  3. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  4. Observed by OffSeq 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

ProductAffectedFixed in
PyPItwistedAffected
  • <24.7.0rc1
Fixed in
  • 24.7.0rc1

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

Community reviews

Loading reviews…