Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2024-1968
Python vulnerability analysis and mitigation

Overview

In scrapy/scrapy, a security vulnerability (CVE-2024-1968) was identified where the Authorization header is not properly handled during redirects that change the scheme (e.g., HTTPS to HTTP) while remaining within the same domain. This vulnerability was discovered in May 2024 and affects the redirect middleware functionality of the Scrapy framework (NVD).

Technical details

The vulnerability exists in the _build_redirect_request function of the redirect middleware. The issue occurs when the Authorization header is not removed during redirects that only change the scheme but remain within the same domain. This behavior violates the Fetch standard, which requires the removal of Authorization headers in cross-origin requests when the scheme, host, or port changes (Github Commit). The vulnerability has been assigned a CVSS v3.0 base score of 7.5 (HIGH) with vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (NVD).

Impact

When a redirect downgrades from HTTPS to HTTP, the Authorization header may be inadvertently exposed in plaintext, potentially leading to the disclosure of sensitive authentication information to unauthorized actors (NVD).

Exploitability

The vulnerability can be exploited when a Scrapy application processes redirects that involve scheme changes (HTTPS to HTTP) while maintaining the same domain. The exposure occurs without requiring special privileges or user interaction, making it relatively straightforward to exploit (NVD).

Mitigation and workarounds

A fix has been implemented in the Scrapy framework that properly handles the Authorization header during redirects. The fix ensures compliance with the Fetch standard by removing the Authorization header when appropriate during cross-origin requests (Github Commit).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

python-scrapy

Affected

bullseye

python-scrapy

Affected

sid

python-scrapy: 2.11.2-1

Fixed

trixie

python-scrapy: 2.11.2-1

Fixed

SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66455CRITICAL9.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-63374CRITICAL9.3
  • Python logoPython
  • anyio
NoYesSep 18, 2026
CVE-2026-59163CRITICAL9.1
  • Python logoPython
  • mnemosyne-memory
NoYesSep 18, 2026
CVE-2026-33625HIGH8.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-64847MEDIUM6.8
  • Python logoPython
  • anyio
NoYesSep 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management