CVE-2024-1968: Authorization Header Leakage in scrapy/scrapy on Scheme Change Redirects
Vulnerability summary
CVE-2024-1968 is a high (CVSS 7.5) vulnerability in scrapy. EPSS estimates a 0.69% chance of exploitation in the next 30 days, higher than 54.1% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 20-05-2024PublishedVulnerability first disclosed.
- 01-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.69%
Chance of exploitation in the next 30 days
Percentile
54%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.69% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Scrapy2 products
- scrapy≤ 1.8.4 | ≥ 2.0.0, < 2.11.2
- scrapy/scrapy≥ unspecified, < 2.11.2
Debian1 product
- python-scrapyAll versions (No fix recorded) | < 2.11.2-1
Opensuse1 product
- python-Scrapy&distro=openSUSE Tumbleweed< 2.11.2-1.1
PyPI1 product
- scrapy< 2.11.2 | < 1d0502f25bbe55a22899af915623fda1aaeb9dd8 | ≥ 2.0.0, < 2.11.2
Ubuntu1 product
- python-scrapyAll versions (No fix recorded) | < 1.5.0-1ubuntu0.1~esm1 | < 1.7.3-1ubuntu0.1~esm1 | < 2.5.1-2ubuntu0.1~esm1 | < 2.11.1-1ubuntu0.1~esm2
5 vendors · 6 products
References
10 links- github.com/scrapy/scrapyPACKAGE