CVE-2021-41125

Published on: 10/06/2021 12:00:00 AM UTC

Last Modified on: 10/14/2021 07:34:00 PM UTC

CVE-2021-41125 - advisory for GHSA-jwqp-28gf-p498

Source: Mitre Source: Nist Print: PDF PDF
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N

Certain versions of Scrapy from Scrapy contain the following vulnerability:

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

  • CVE-2021-41125 has been assigned by URL Logo [email protected] to track the vulnerability - currently rated as MEDIUM severity.
  • Affected Vendor/Software: URL Logo scrapy - scrapy version < 1.8.1
  • Affected Vendor/Software: URL Logo scrapy - scrapy version >= 2.0.0, < 2.5.1

CVSS3 Score: 6.5 - MEDIUM

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
NETWORK LOW LOW NONE
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
UNCHANGED HIGH NONE NONE

CVSS2 Score: 4 - MEDIUM

Access
Vector
Access
Complexity
Authentication
NETWORK LOW SINGLE
Confidentiality
Impact
Integrity
Impact
Availability
Impact
PARTIAL NONE NONE

CVE References

Description Tags Link
w3lib Package — w3lib 1.22.0 documentation w3lib.readthedocs.io
text/html
URL Logo MISC w3lib.readthedocs.io/en/latest/w3lib.html#w3lib.http.basic_auth_header
HTTP authentication credentials potentially leaked to target websites · Advisory · scrapy/scrapy · GitHub github.com
text/html
URL Logo CONFIRM github.com/scrapy/scrapy/security/advisories/GHSA-jwqp-28gf-p498
Downloader Middleware — Scrapy 2.5.1 documentation doc.scrapy.org
text/html
URL Logo MISC doc.scrapy.org/en/latest/topics/downloader-middleware.html#module-scrapy.downloadermiddlewares.httpauth
Add http_auth_domain to HttpAuthMiddleware. · scrapy/[email protected] · GitHub github.com
text/html
URL Logo MISC github.com/scrapy/scrapy/commit/b01d69a1bf48060daec8f751368622352d8b85a6

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
ApplicationScrapyScrapyAllAllAllAll
  • cpe:2.3:a:scrapy:scrapy:*:*:*:*:*:*:*:*:

Social Mentions

Source Title Posted (UTC)
Twitter Icon @LinInfoSec Python - CVE-2021-41125: github.com/scrapy/scrapy/… 2021-10-06 20:20:09
© CVE.report 2021 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report