CVEfocus › CVE database › CVE-2024-1968

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

CVSS 7.5 HighEPSS 0.7% (higher than 53% of CVEs)Published 2024-05-20Updated 2024-08-01Assigner: @huntr_ai

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.

CWE-200

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
6Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04python-scrapyNot affected
vulnerable_code_not_present
Ubuntu 25.10python-scrapyNot affected
vulnerable_code_not_present
Ubuntu 24.04python-scrapyFix pending2.11.1-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2024-1968
Ubuntu 22.04python-scrapyFix pending2.5.1-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-1968
Ubuntu 20.04python-scrapyFix pending1.7.3-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-1968
Ubuntu 18.04python-scrapyFix pending1.5.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-1968
Ubuntu 16.04python-scrapyFix pendingUBUNTU-CVE-2024-1968
Debian 14python-scrapyFixed2.11.2-1DEBIAN-CVE-2024-1968
Debian 13python-scrapyFixed2.11.2-1DEBIAN-CVE-2024-1968
Debian 12python-scrapyFix pendingDEBIAN-CVE-2024-1968
PyPI libraryscrapyFixed2.0.0PYSEC-2024-258

What the vendor says

As published in the CVE record by @huntr_ai, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.