Live threats

All CVEs / Scrapy

CVE-2024-1968Scrapy

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Scrapy.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
scrapyscrapy≤ 1.8.4
scrapyscrapy≥ 2.0.0 < 2.11.2

Official sources

References

Links published by the sources. Open them with care.