Loading advisory.
Loading advisory.
Scrapy leaks the authorization header on same-domain but cross-origin redirects
Since version 2.11.1, Scrapy drops the Authorization header when a request is redirected to a different domain. However, it keeps the header if the domain remains the same but the scheme (http/https) or the port change, all scenarios where the header should also be dropped.
Published 2024-05-14 20:14 UTC · Modified 2026-06-10 17:02 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| scrapy | PyPI | < 2.11.2 git commits in https://github.com/scrapy/scrapy: < 1d0502f25bbe55a22899af915623fda1aaeb9dd8 < 2.0.0 >= 2.0.0, < 2.11.2 versions 0.10.4.2364, 0.12.0.2550, 0.14.1, 0.14.2, 0.14.3, 0.14.4, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.16.4, 0.16.5, 0.18.0, 0.18.1, 0.18.2, 0.18.3, 0.18.4, 0.20.0, 0.20.1, 0.20.2 and 96 more | 2.11.2, 1d0502f25bbe55a22899af915623fda1aaeb9dd8, 2.0.0 | pip install --upgrade 'scrapy>=2.11.2'pip install --upgrade 'scrapy>=1d0502f25bbe55a22899af915623fda1aaeb9dd8'pip install --upgrade 'scrapy>=2.0.0' |
Since version 2.11.1, Scrapy drops the Authorization header when a request is redirected to a different domain. However, it keeps the header if the domain remains the same but the scheme (http/https) or the port change, all scenarios where the header should also be dropped.
In the context of a man-in-the-middle attack, this could be used to get access to the value of that Authorization header
Upgrade to Scrapy 2.11.2.
There is no easy workaround for unpatched versions of Scrapy. You can replace the built-in redirect middlewares with custom ones patched for this issue, but you have to patch them yourself, manually.
This security issue was reported and fixed by @szarny at https://huntr.com/bounties/27f6a021-a891-446a-ada5-0226d619dd1a/.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.007 on 2026-11-24 to 0.009 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.007 | first score | v2026.06.15 |
| 2026-11-26 | 0.009 | 0.007 | v2026.06.15 |