CVE-2021-41125: debian debian_linux
Vulnerability summary
CVE-2021-41125 is a medium (CVSS 6.5) vulnerability in debian debian_linux. EPSS estimates a 1.26% chance of exploitation in the next 30 days, higher than 69.2% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 06-10-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
Scrapy is a high-level web crawling and scraping framework for Python. 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. 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. If you are using Scrapy 1.8 or a lower version, and upgrading to Scrapy 2.5.1 is not an option, you may upgrade to Scrapy 1.8.1 instead. If you cannot upgrade, set your HTTP authentication credentials on a per-request basis, using for example the `w3lib.http.basic_auth_header` function to convert your credentials into a value that you can assign to the `Authorization` header of your request, instead of defining your credentials globally using `HttpAuthMiddleware`.
CVSS metrics
7 scores · 5 sources · 3 versions- CVE.orgCNA5.7MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:NDiffers
- OSV · PypiEcosystem advisory · calculated5.7MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
1.26%
Chance of exploitation in the next 30 days
Percentile
69%
Versus all other CVEs
30-day change
0.00 pp
From 1.26% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-522Insufficiently Protected CredentialsThe product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.
Affected systems
Debian2 products
- python-scrapy< 2.5.1-1
- debian_linuxEOL9.0
Opensuse1 product
- python-Scrapy&distro=openSUSE Tumbleweed< 2.5.1-1.1
PyPI1 product
- scrapy< 1.8.1 | < b01d69a1bf48060daec8f751368622352d8b85a6 | ≥ 2.0.0, < 2.5.1
Scrapy1 product
- scrapy< 1.8.1 | ≥ 2.0.0, < 2.5.1
Ubuntu1 product
- python-scrapyAll versions (No fix recorded) | < 1.5.0-1ubuntu0.1~esm1 | < 1.7.3-1ubuntu0.1~esm1
5 vendors · 6 products
References
13 links- github.com/scrapy/scrapy/security/advisories/GHSA-jwqp-28gf-p498X Refsource CONFIRMWEBAdvisoryREPORTThird Party Advisory
- github.com/scrapy/scrapy/commit/b01d69a1bf48060daec8f751368622352d8b85a6X Refsource MISCWEBFIXREPORTPatchThird Party Advisory
- lists.debian.org/debian-lts-announce/2022/03/msg00021.htmlMailing ListX Refsource MLISTWEBThird Party Advisory
- github.com/scrapy/scrapyPACKAGE