Authorization Header Leakage in scrapy/scrapy on Scheme Change Redirects
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| scrapy | scrapy/scrapy | before 2.11.2 | 2.11.2 | Patch available | CNA |
| — | Scrapy (PyPI) | before 2.11.2 | 2.11.2 | Patch available | GHSA-4qqq-9vqf-3h3f |
- scrapy/scrapy Vendorscrapy Affected before 2.11.2 Fixed in 2.11.2 Patch available CNA
- Scrapy (PyPI) Vendor— Affected before 2.11.2 Fixed in 2.11.2 Patch available GHSA-4qqq-9vqf-3h3f
Remediation
- Fix · CNA scrapy/scrapy (scrapy) Fixed in 2.11.2
- Fix · GHSA-4qqq-9vqf-3h3f Scrapy (PyPI) Fixed in 2.11.2 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2024-1968
- 2026-10-03 Alias added: GHSA-4qqq-9vqf-3h3f
References
More Scrapy vulnerabilities
- TI-2024-03333 Authorization Header Leak During Cross-Domain Redirect in scrapy/scrapy CVSS 3.0HIGH 7.5
- TI-2024-03331 XML External Entity (XXE) Vulnerability in scrapy/scrapy CVSS 3.0HIGH 7.5
- TI-2017-10313 Scrapy 1.4 allows remote attackers to cause a denial of service (memory consumption) via… CVSS 3.0HIGH 7.5
- TI-2024-01761 ReDoS Vulnerability in scrapy/scrapy's XMLFeedSpider CVSS 3.1MEDIUM 6.5
- TI-2022-00495 Exposure of Sensitive Information to an Unauthorized Actor in scrapy/scrapy CVSS 3.1MEDIUM 6.5
- TI-2021-17964 HTTP authentication credential leak to target websites in scrapy CVSS 3.1MEDIUM 6.5
Sources
- CVE-2024-1968 · CVE Program
- CVE-2024-1968 · NVD
- FIRST EPSS
- GHSA-4qqq-9vqf-3h3f · GitHub Advisory Database · CC BY 4.0
- CVE-2024-1968 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences