CVE-2024-41810
Python vulnerability analysis and mitigation

Overview

The twisted.web.util.redirectTo function in Twisted, an event-based framework for internet applications supporting Python 3.6+, contains an HTML injection vulnerability identified as CVE-2024-41810. The vulnerability was discovered and disclosed on July 29, 2024, affecting versions up to and including 24.3.0. 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 (GitHub Advisory).

Technical details

The vulnerability exists in the redirectTo function which generates an HTTP 302 Redirect response. The function reflects the destination URL in the HTML body without any output encoding, built for exceptional cases where the browser doesn't properly handle the redirect. The CVSS v3.1 base score is 6.1 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

If successfully exploited, the vulnerability allows malicious JavaScript to run in the context of the victim's session. This can lead to unauthorized access/modification to victim's account and information associated with it, or allow for unauthorized operations to be performed within the context of the victim's session. The attack is specifically possible in Firefox browser, while other browsers will display an error message and not render the HTML body (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 24.7.0rc1. Users are advised to upgrade to this version or later to mitigate the risk. The fix involves HTML-escaping the provided URL in the fallback response body returned by the redirectTo function (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67511CRITICAL9.6
  • PythonPython
  • cai-framework
NoNoDec 09, 2025
CVE-2025-66645HIGH7.5
  • PythonPython
  • nicegui
NoYesDec 09, 2025
GHSA-9rwj-6rc7-p77cHIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesDec 10, 2025
CVE-2025-67502MEDIUM5.4
  • PythonPython
  • taguette
NoYesDec 10, 2025
CVE-2025-67485MEDIUM5.3
  • PythonPython
  • mad-proxy
NoNoDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management