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.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)1.2%top 31.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Nuclei

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

EcosystemPackageFixed inAdvisory
Debian:12twisted22.4.0-4+deb12u1DSA-5797-1
Debian:12twisted22.4.0-4+deb12u1DEBIAN-CVE-2024-41810
Debian:13twisted24.7.0-1DEBIAN-CVE-2024-41810
Debian:14twisted24.7.0-1DEBIAN-CVE-2024-41810
PyPItwisted24.7.0rc1GHSA-cf56-g6w6-pqq2
PyPItwisted24.7.0rc1PYSEC-2024-75
Ubuntu:22.04:LTStwisted22.1.0-2ubuntu2.5USN-6988-1
Ubuntu:22.04:LTStwisted22.1.0-2ubuntu2.5UBUNTU-CVE-2024-41810
Ubuntu:24.04:LTStwisted24.3.0-1ubuntu0.1UBUNTU-CVE-2024-41810
Ubuntu:24.04:LTStwisted24.3.0-1ubuntu0.1USN-6988-1

Affected products (as reported)

VendorProductVersions
twisted twisted <= 24.3.0

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

References