Improper access control in scrapy - CVE-2021-41125
Published: October 6, 2021 / Updated: April 23, 2026
scrapy
scrapy.org
Description
The vulnerability allows a remote attacker to disclose HTTP authentication credentials.
The vulnerability exists due to improper access control in HttpAuthMiddleware when handling requests to target websites. A remote attacker can trigger requests, redirects, or auxiliary requests to receive the configured HTTP authentication credentials and disclose HTTP authentication credentials.
This includes requests generated by Scrapy components such as robots.txt requests when ROBOTSTXT_OBEY is enabled, as well as requests reached through redirects.