CVE-2021-41125: Scrapy HTTP authentication credentials potentially leaked to target websites
(updated )
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 →