Information disclosurein scrapy.
Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).
In scrapy/scrapy, an issue was identified where the Authorization header is not removed during redirects that only change the scheme (e.g., HTTPS to HTTP) but remain within the same domain. This behavior contravenes the Fetch standard, which mandates the removal of Authorization headers in cross-origin requests when the scheme, host, or port changes. Consequently, when a redirect downgrades from HTTPS to HTTP, the Authorization header may be inadvertently exposed in plaintext, leading to potential sensitive information disclosure to unauthorized actors. The flaw is located in the _build_redirect_request function of the redirect middleware.
- Upgrade scrapy/scrapy to 2.11.2 or later.
- Upgrade Scrapy (PyPI) to 2.11.2 or later.
- Upgrade scrapy (PyPI) to 2.0.0, 2.11.2 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 28 Feb 2024CVE ID reserved by @huntr_ai.
- 20 May 2024Published in the CVE List.
- 1 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other scrapy vulnerabilities
Same weakness: Information exposure
Patchminder. CVE-2024-1968: Information disclosure in scrapy. https://patchminder.com/cve/cve-2024-1968/ (accessed 5 December 2026).