CVE-2024-1968Scrapy
High 7.5 No auth needed
Follow: this CVE · Scrapy · Scrapy We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 58
- Auth required
- No
- Published
- May 20, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-200
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Scrapy.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | scrapy |
< 2.11.2 |
2.11.2 |
pip install "scrapy>=2.11.2" |
| PyPI | scrapy |
< 2.0.0 |
2.0.0 |
pip install "scrapy>=2.0.0" |
| PyPI | scrapy |
≥ 2.0.0 < 2.11.2 |
2.11.2 |
pip install "scrapy>=2.11.2" |
Per OSV / GitHub Advisories (GHSA-4qqq-9vqf-3h3f, PYSEC-2024-258). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| scrapy | scrapy | ≤ 1.8.4 |
| scrapy | scrapy | ≥ 2.0.0 < 2.11.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- huntr.com Exploit Third Party Advisory