CVE & CISA-KEV Catalog

CVE-2021-41125

MEDIUM
5.7
CVSS v3
NVD

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`.

How to fix

Remediation Available
python-scrapyDebian
Fixed in:2.4.1-2+deb11u1CVE-2021-41125
Fixed in:2.5.1-1CVE-2021-41125
Fixed in:2.5.1-1CVE-2021-41125
Fixed in:2.5.1-1CVE-2021-41125
python-scrapyUbuntu
Fixed in:1.5.0-1ubuntu0.1~esm1USN-7476-1
Fixed in:1.7.3-1ubuntu0.1~esm1USN-7476-1
Fixed in:2.5.1-2ubuntu0.1~esm1USN-7476-1
Fixed in:2.11.1-1ubuntu0.1~esm2USN-7476-1
python3-scrapyUbuntu
Fixed in:1.5.0-1ubuntu0.1~esm1USN-7476-1
Fixed in:1.7.3-1ubuntu0.1~esm1USN-7476-1
Fixed in:2.5.1-2ubuntu0.1~esm1USN-7476-1
Fixed in:2.11.1-1ubuntu0.1~esm2USN-7476-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityNone
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N

Exploit Intelligence

1.20%probability of exploitation in 30 days
64thpercentile

Moderate risk: more likely to be exploited than 64% of all known CVEs.

References

Related Vulnerabilities

Other CWE-200 (Information Exposure) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-24919High8.6100%KEV + Ransom-
CVE-2020-14181Medium5.3100%-Fix
CVE-2021-34429Medium5.399%-Fix
CVE-2018-11409Medium5.398%--
CVE-2021-41277Critical10.097%KEV-
CVE-2016-2183High7.596%-Fix
Embed a live status badge for CVE-2021-41125
CVE-2021-41125 severity badge

Markdown

[![CVE-2021-41125](https://tridentstack.com/cve/badge/CVE-2021-41125.svg)](https://tridentstack.com/cve/CVE-2021-41125)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-41125"><img src="https://tridentstack.com/cve/badge/CVE-2021-41125.svg" alt="CVE-2021-41125"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.