CVE-2021-41125

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-41125
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41125.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-41125
Aliases
Related
Published
2021-10-06T18:15:10Z
Modified
2024-09-18T03:16:20.829948Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Debian:11 / python-scrapy

Package

Name
python-scrapy
Purl
pkg:deb/debian/python-scrapy?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.1-2+deb11u1

Affected versions

2.*

2.4.1-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / python-scrapy

Package

Name
python-scrapy
Purl
pkg:deb/debian/python-scrapy?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.5.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / python-scrapy

Package

Name
python-scrapy
Purl
pkg:deb/debian/python-scrapy?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.5.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/scrapy/scrapy

Affected ranges

Type
GIT
Repo
https://github.com/scrapy/scrapy
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.10
0.10-rc1
0.10.1
0.10.2
0.10.3
0.14.0
0.15.0
0.15.1
0.17.0
0.18.0
0.19.0
0.21.0
0.23.0
0.24.0
0.25.0
0.25.1
0.7
0.7-rc1
0.8
0.9
0.9-rc1

1.*

1.0.0rc1
1.2.0
1.2.0dev2
1.2.1
1.2.2
1.3.0
1.3.1
1.3.2
1.4.0
1.5.0
1.6.0
1.7.0
1.8.0

Other

hojo

scrapy-0.*

scrapy-0.25.1-sc