CVE-2024-3574 Authorization Header Leak During Cross-Domain Redirect in scrapy/scrapy

High 7.5 Published Updated

Attackers can steal Authorization headers via cross-domain redirects in Scrapy, potentially leading to account hijacking.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-3574?

CVE-2024-3574 is a high-severity vulnerability in scrapy/scrapy, published on 16 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In scrapy version 2.10.1, an issue was identified where the Authorization header, containing credentials for server authentication, is leaked to a third-party site during a cross-domain redirect. This vulnerability arises from the failure to remove the Authorization header when redirecting across domains. The exposure of the Authorization header to unauthorized actors could potentially allow for account hijacking.

Weakness: CWE-200

Which versions are affected by CVE-2024-3574?

5 open source packages ship an affected version, including scrapy. It affects 1 product.

PackageAffectedFixed in
scrapy PyPIAll versions1.8.4, 2.11.1
scrapy PyPIAll versions1.8.4
scrapy PyPIAll versions1.8.4
scrapy PyPIFrom 22.11.1
scrapy PyPIFrom 22.11.1

Products include Scrapy Scrapy.

How do I fix CVE-2024-3574?

Upgrade scrapy to a fixed version for your release line: 1.8.4 or 2.11.1.

Is CVE-2024-3574 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3574 exists.

Sources

Also known as DEBIAN-CVE-2024-3574, GHSA-cw9j-q3vf-hrrv, PYSEC-2026-1908, UBUNTU-CVE-2024-3574.

Is CVE-2024-3574 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free