CVE-2024-41810
HTML injection in HTTP redirect body
Reported by github_m · Published July 29, 2024
twisted is fixed in 24.7.0rc1 and 046a164f89a0f08d3239ecebd750360f8914df33 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| twisted | PyPI | 24.7.0rc1, 046a164f89a0f08d3239ecebd750360f8914df33 |
| python3-twisted+tls | Amazon Linux | 22.4.0-127.amzn2023.0.4 |
| twisted | twisted | 24.3.0 |
| twisted | twistedmatrix | 24.3.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| twisted | twisted | <= 24.3.0 |
| PyPI | Twisted | 0 |
| twistedmatrix | twisted | 0 |
| amazon:2023 | python3-twisted+tls | 0 |
| twisted | twisted | 0 |
| amazon:2023 | python3-twisted | 0 |
Timeline
- Jul 29, 2024 CVE Published
- Jul 30, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (16 in total, the first dated here)
- Nov 3, 2025 CVE Updated
- Jan 7, 2026 Security Advisory (4 in total, the first dated here)
- Aug 10, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-41810
vulnetix vdb fixes CVE-2024-41810
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-41810/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/twisted/twisted/security/advisories/GHSA-cf56-g6w6-pqq2 x_refsource_CONFIRM
- https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-41810 advisory
- https://github.com/advisories/GHSA-cf56-g6w6-pqq2 advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2024-75.yaml advisory
- https://github.com/twisted/twisted url
- https://lists.debian.org/debian-lts-announce/2024/11/msg00028.html url