PT-2021-23108

CVE-2021-41125

·

Published

2021-10-06

·

Updated

2025-05-05

Description by

CVSS 4.0
6.9
Medium
MetricsAV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Scrapy versions prior to 2.5.1 Scrapy versions 1.8 and earlier
Description The issue affects Scrapy when using HttpAuthMiddleware for HTTP authentication, causing all requests to expose credentials to the request target. This includes requests generated by Scrapy components, such as robots.txt requests or requests reached through redirects.
Recommendations For Scrapy versions prior to 2.5.1, upgrade to Scrapy 2.5.1 and use the new http auth domain spider attribute to control which domains are allowed to receive the configured HTTP authentication credentials. For Scrapy versions 1.8 and earlier, upgrade to Scrapy 1.8.1 if upgrading to Scrapy 2.5.1 is not an option. If upgrading is not possible, set HTTP authentication credentials on a per-request basis using the w3lib.http.basic auth header function to convert credentials into a value that can be assigned to the Authorization header of the request.
Exploitability
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-JWQP-28GF-P498
DLA-2950-1
OPENSUSE-SU-2024:11558-1
PYSEC-2021-363
USN-7476-1
Found an issue in the description? Have something to add? Feel free to write us 👾