7.5

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

Analyzed
AliasesGHSA-4qqq-9vqf-3h3fPYSEC-2024-258UBUNTU-CVE-2024-1968
Published 20-05-2024Last modified 01-08-2024

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.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.0 (CVE.org)
EPSS score
0.69%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 20-05-2024
    PublishedVulnerability first disclosed.
  2. 01-08-2024
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Scrapy2 products
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