Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. scrapy
  4. ›
  5. CVE-2021-41125

CVE-2021-41125: Scrapy HTTP authentication credentials potentially leaked to target websites

October 6, 2021 (updated October 26, 2024)

If you use HttpAuthMiddleware (i.e. the http_user and http_pass spider attributes) for HTTP authentication, all requests will expose your credentials to the request target.

This includes requests generated by Scrapy components, such as robots.txt requests sent by Scrapy when the ROBOTSTXT_OBEY setting is set to True, or as requests reached through redirects.

References

  • github.com/advisories/GHSA-jwqp-28gf-p498
  • github.com/pypa/advisory-database/tree/main/vulns/scrapy/PYSEC-2021-363.yaml
  • github.com/scrapy/scrapy
  • github.com/scrapy/scrapy/commit/b01d69a1bf48060daec8f751368622352d8b85a6
  • github.com/scrapy/scrapy/security/advisories/GHSA-jwqp-28gf-p498
  • lists.debian.org/debian-lts-announce/2022/03/msg00021.html
  • nvd.nist.gov/vuln/detail/CVE-2021-41125
  • w3lib.readthedocs.io/en/latest/w3lib.html

Code Behaviors & Features

Detect and mitigate CVE-2021-41125 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 1.8.1, all versions starting from 2.0.0 before 2.5.1

Fixed versions

  • 1.8.1
  • 2.5.1

Solution

Upgrade to versions 1.8.1, 2.5.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/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
  • CWE-522: Insufficiently Protected Credentials

Source file

pypi/scrapy/CVE-2021-41125.yml

Spotted a mistake? Edit the file on GitLab.

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

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