PyPI: scrapy

CVE-2024-3574

Safety vulnerability ID: SFTY-20240416-50894

Safety legacy ID: pyup.io-71642

In scrapy/scrapy, 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.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Scrapy authorization header leakage on cross-domain redirect

Advisory

In scrapy/scrapy, 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.

Affected Package

Affecting scrapy package, versions>=2,<2.11.1<1.8.4

Also affects

---

How to Fix

Upgradescrapyto2.11.11.8.4or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more