Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. scrapy
  4. ›
  5. GHSA-4qqq-9vqf-3h3f

GHSA-4qqq-9vqf-3h3f: Scrapy leaks the authorization header on same-domain but cross-origin redirects

May 14, 2024

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

References

  • github.com/advisories/GHSA-4qqq-9vqf-3h3f
  • github.com/scrapy/scrapy
  • github.com/scrapy/scrapy/commit/1d0502f25bbe55a22899af915623fda1aaeb9dd8
  • github.com/scrapy/scrapy/security/advisories/GHSA-4qqq-9vqf-3h3f

Code Behaviors & Features

Detect and mitigate GHSA-4qqq-9vqf-3h3f with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.11.2

Fixed versions

  • 2.11.2

Solution

Upgrade to version 2.11.2 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

pypi/scrapy/GHSA-4qqq-9vqf-3h3f.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:22 +0000.