# CVE-2024-1968: Authorization Header Leakage in scrapy/scrapy on Scheme Change Redirects

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-05-20 · Modified: 2024-08-01
- Aliases: GHSA-4qqq-9vqf-3h3f, PYSEC-2024-258, UBUNTU-CVE-2024-1968, DEBIAN-CVE-2024-1968, openSUSE-SU-2024:14130-1
- Record: https://cvemate.com/vulnerability/CVE-2024-1968 · JSON: https://cvemate.com/vulnerability/CVE-2024-1968/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, CVE.org) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.688%, percentile 54.12%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian python-scrapy (Debian): All versions (No fix recorded) \| \< 2.11.2-1
- ubuntu python-scrapy (Ubuntu): All 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
- PyPI scrapy (PyPI): \< 2.11.2 \| \< 1d0502f25bbe55a22899af915623fda1aaeb9dd8 \| ≥ 2.0.0, \< 2.11.2
- opensuse python-Scrapy&distro=openSUSE Tumbleweed (openSUSE): \< 2.11.2-1.1
- scrapy scrapy: ≤ 1.8.4 \| ≥ 2.0.0, \< 2.11.2
- scrapy scrapy/scrapy: ≥ unspecified, \< 2.11.2

## References

- <https://huntr.com/bounties/27f6a021-a891-446a-ada5-0226d619dd1a>
- <https://github.com/scrapy/scrapy/commit/1d0502f25bbe55a22899af915623fda1aaeb9dd8>
- <https://github.com/scrapy/scrapy/security/advisories/GHSA-4qqq-9vqf-3h3f>
- <https://github.com/scrapy/scrapy>
- <https://github.com/advisories/GHSA-4qqq-9vqf-3h3f>
- <https://ubuntu.com/security/CVE-2024-1968>
- <https://www.cve.org/CVERecord?id=CVE-2024-1968>
- <https://ubuntu.com/security/notices/USN-7476-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-1968>
- <https://www.suse.com/security/cve/CVE-2024-1968>

---

Data as of 2026-12-05T09:31:49.348Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
