CVE-2024-41810: Scrapy · Twisted vulnerable to HTML injection in HTTP redirect body
Affects scrapySource GCVE Database
Not known to be exploited · public detection template (Nuclei) · CVSS 6.1 Medium : upgrade to 2.11.2_3 when convenient.
Data as of 1 Nov 2026, 22:57 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 6.1 |
|---|
- EPSS
- 1.2% chance of exploitation in 30 days – higher than 68% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.11.2_3
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 1 Nov 2026.
What to do
Upgrade scrapy to 2.11.2_3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewscrapypkg:brew/scrapyOther threats | 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 for this vulnerability and should be applied to affected versions. The vendor advisory confirms the issue and the availability of a fix. If upgrading immediately is not possible, ensure that application code does not allow untrusted input to control redirect URLs to prevent exploitation. Note that the vulnerability is only exploitable in Firefox due to its handling of redirect responses.
Description
The Twisted web framework's redirectTo function contains an HTML injection vulnerability that can lead to reflected cross-site scripting (XSS) if an attacker controls the redirect URL. This occurs because the redirectTo function reflects the destination URL in the HTML body without encoding, allowing injection of arbitrary HTML/JavaScript. The vulnerability is exploitable only in Firefox due to its handling of the redirect response body. Exploitation could allow malicious scripts to run in the victim's session context, potentially leading to unauthorized access or actions. Affected versions are Twisted versions used by Scrapy from 2.9.0 up to but not including 2.11.2_3. A patch is available for this issue.
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)