Lookup for vulnerable packages by Package URL.

Purlpkg:pypi/scrapy@2.0.0
Typepypi
Namespace
Namescrapy
Version2.0.0
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_version2.11.2
Latest_non_vulnerable_version2.13.4
Affected_by_vulnerabilities
0
url VCID-4q2x-51p4-eygm
vulnerability_id VCID-4q2x-51p4-eygm
summary information disclosure
references
0
reference_url http://doc.scrapy.org/en/latest/topics/downloader-middleware.html#module-scrapy.downloadermiddlewares.httpauth
reference_id
reference_type
scores
0
value 5.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
1
value 6.9
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
url http://doc.scrapy.org/en/latest/topics/downloader-middleware.html#module-scrapy.downloadermiddlewares.httpauth
1
reference_url https://github.com/pypa/advisory-database/tree/main/vulns/scrapy/PYSEC-2021-363.yaml
reference_id
reference_type
scores
0
value 5.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
1
value 6.9
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/pypa/advisory-database/tree/main/vulns/scrapy/PYSEC-2021-363.yaml
2
reference_url https://github.com/scrapy/scrapy
reference_id
reference_type
scores
0
value 5.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
1
value 6.9
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/scrapy/scrapy
3
reference_url https://github.com/scrapy/scrapy/commit/b01d69a1bf48060daec8f751368622352d8b85a6
reference_id
reference_type
scores
0
value 5.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
1
value 6.9
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/scrapy/scrapy/commit/b01d69a1bf48060daec8f751368622352d8b85a6
4
reference_url https://github.com/scrapy/scrapy/security/advisories/GHSA-jwqp-28gf-p498
reference_id
reference_type
scores
0
value 5.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
1
value 6.9
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/scrapy/scrapy/security/advisories/GHSA-jwqp-28gf-p498
5
reference_url https://lists.debian.org/debian-lts-announce/2022/03/msg00021.html
reference_id
reference_type
scores
0
value 5.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
1
value 6.9
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://lists.debian.org/debian-lts-announce/2022/03/msg00021.html
6
reference_url https://w3lib.readthedocs.io/en/latest/w3lib.html#w3lib.http.basic_auth_header
reference_id
reference_type
scores
0
value 5.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
1
value 6.9
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://w3lib.readthedocs.io/en/latest/w3lib.html#w3lib.http.basic_auth_header
7
reference_url https://security.archlinux.org/AVG-2447
reference_id AVG-2447
reference_type
scores
0
value Medium
scoring_system archlinux
scoring_elements
url https://security.archlinux.org/AVG-2447
8
reference_url https://nvd.nist.gov/vuln/detail/CVE-2021-41125
reference_id CVE-2021-41125
reference_type
scores
0
value 5.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
1
value 6.9
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2021-41125
9
reference_url https://github.com/advisories/GHSA-jwqp-28gf-p498
reference_id GHSA-jwqp-28gf-p498
reference_type
scores
url https://github.com/advisories/GHSA-jwqp-28gf-p498
fixed_packages
0
url pkg:pypi/scrapy@2.5.1
purl pkg:pypi/scrapy@2.5.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-atnw-pnvj-zkhp
1
vulnerability VCID-jrh5-kjau-xkar
2
vulnerability VCID-n6z2-awrh-7kbg
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/scrapy@2.5.1
aliases CVE-2021-41125, GHSA-jwqp-28gf-p498, PYSEC-2021-363
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-4q2x-51p4-eygm
1
url VCID-4yce-5hbd-4kbx
vulnerability_id VCID-4yce-5hbd-4kbx
summary
Cookie-setting is not restricted based on the public suffix list
Responses from domain names whose public domain name suffix contains 1 or more periods (e.g. responses from `example.co.uk`, given its public domain name suffix is `co.uk`) are able to set cookies that are included in requests to any other domain sharing the same domain name suffix.
references
0
reference_url https://github.com/scrapy/scrapy/commit/e865c4430e58a4faa0e0766b23830f8423d6167a
reference_id
reference_type
scores
url https://github.com/scrapy/scrapy/commit/e865c4430e58a4faa0e0766b23830f8423d6167a
1
reference_url https://github.com/advisories/GHSA-mfjm-vh54-3f96
reference_id GHSA-mfjm-vh54-3f96
reference_type
scores
url https://github.com/advisories/GHSA-mfjm-vh54-3f96
2
reference_url https://github.com/scrapy/scrapy/security/advisories/GHSA-mfjm-vh54-3f96
reference_id GHSA-mfjm-vh54-3f96
reference_type
scores
url https://github.com/scrapy/scrapy/security/advisories/GHSA-mfjm-vh54-3f96
fixed_packages
0
url pkg:pypi/scrapy@2.6.0
purl pkg:pypi/scrapy@2.6.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-atnw-pnvj-zkhp
1
vulnerability VCID-jrh5-kjau-xkar
2
vulnerability VCID-n6z2-awrh-7kbg
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/scrapy@2.6.0
aliases GHSA-mfjm-vh54-3f96, GMS-2022-230
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-4yce-5hbd-4kbx
2
url VCID-atnw-pnvj-zkhp
vulnerability_id VCID-atnw-pnvj-zkhp
summary A Regular Expression Denial of Service (ReDoS) vulnerability exists in the XMLFeedSpider class of the scrapy/scrapy project, specifically in the parsing of XML content. By crafting malicious XML content that exploits inefficient regular expression complexity used in the parsing process, an attacker can cause a denial-of-service (DoS) condition. This vulnerability allows for the system to hang and consume significant resources, potentially rendering services that utilize Scrapy for XML processing unresponsive.
references
0
reference_url https://github.com/scrapy/scrapy/commit/479619b340f197a8f24c5db45bc068fb8755f2c5
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
url https://github.com/scrapy/scrapy/commit/479619b340f197a8f24c5db45bc068fb8755f2c5
1
reference_url https://huntr.com/bounties/271f94f2-1e05-4616-ac43-41752389e26b
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
url https://huntr.com/bounties/271f94f2-1e05-4616-ac43-41752389e26b
2
reference_url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065111
reference_id 1065111
reference_type
scores
url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065111
fixed_packages
0
url pkg:pypi/scrapy@2.11.1
purl pkg:pypi/scrapy@2.11.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-n6z2-awrh-7kbg
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/scrapy@2.11.1
aliases CVE-2024-1892, PYSEC-2024-162
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-atnw-pnvj-zkhp
3
url VCID-eps3-2rkz-r3gf
vulnerability_id VCID-eps3-2rkz-r3gf
summary
Scrapy decompression bomb vulnerability
### Impact

Scrapy limits allowed response sizes by default through the [`DOWNLOAD_MAXSIZE`](https://docs.scrapy.org/en/latest/topics/settings.html#download-maxsize) and [`DOWNLOAD_WARNSIZE`](https://docs.scrapy.org/en/latest/topics/settings.html#download-warnsize) settings.

However, those limits were only being enforced during the download of the raw, usually-compressed response bodies, and not during decompression, making Scrapy vulnerable to [decompression bombs](https://cwe.mitre.org/data/definitions/409.html).

A malicious website being scraped could send a small response that, on decompression, could exhaust the memory available to the Scrapy process, potentially affecting any other process sharing that memory, and affecting disk usage in case of uncompressed response caching.

### Patches

Upgrade to Scrapy 2.11.1.

If you are using Scrapy 1.8 or a lower version, and upgrading to Scrapy 2.11.1 is not an option, you may upgrade to Scrapy 1.8.4 instead.

### Workarounds

There is no easy workaround.

Disabling HTTP decompression altogether is impractical, as HTTP compression is a rather common practice.

However, it is technically possible to manually backport the 2.11.1 or 1.8.4 fix, replacing the corresponding components of an unpatched version of Scrapy with patched versions copied into your own code.

### Acknowledgements

This security issue was reported by @dmandefy [through huntr.com](https://huntr.com/bounties/c4a0fac9-0c5a-4718-9ee4-2d06d58adabb/).
references
0
reference_url https://docs.scrapy.org/en/latest/news.html#scrapy-2-11-1-2024-02-14
reference_id
reference_type
scores
url https://docs.scrapy.org/en/latest/news.html#scrapy-2-11-1-2024-02-14
1
reference_url https://github.com/scrapy/scrapy/commit/71b8741e3607cfda2833c7624d4ada87071aa8e5
reference_id
reference_type
scores
url https://github.com/scrapy/scrapy/commit/71b8741e3607cfda2833c7624d4ada87071aa8e5
2
reference_url https://github.com/scrapy/scrapy/commit/809bfac4890f75fc73607318a04d2ccba71b3d9f
reference_id
reference_type
scores
url https://github.com/scrapy/scrapy/commit/809bfac4890f75fc73607318a04d2ccba71b3d9f
3
reference_url https://github.com/advisories/GHSA-7j7m-v7m3-jqm7
reference_id GHSA-7j7m-v7m3-jqm7
reference_type
scores
url https://github.com/advisories/GHSA-7j7m-v7m3-jqm7
4
reference_url https://github.com/scrapy/scrapy/security/advisories/GHSA-7j7m-v7m3-jqm7
reference_id GHSA-7j7m-v7m3-jqm7
reference_type
scores
url https://github.com/scrapy/scrapy/security/advisories/GHSA-7j7m-v7m3-jqm7
fixed_packages
0
url pkg:pypi/scrapy@2.11.1
purl pkg:pypi/scrapy@2.11.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-n6z2-awrh-7kbg
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/scrapy@2.11.1
aliases GHSA-7j7m-v7m3-jqm7, GMS-2024-327
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-eps3-2rkz-r3gf
4
url VCID-jrh5-kjau-xkar
vulnerability_id VCID-jrh5-kjau-xkar
summary Exposure of Sensitive Information to an Unauthorized Actor in GitHub repository scrapy/scrapy prior to 2.6.1.
references
0
reference_url https://github.com/advisories/GHSA-cjvr-mfj7-j4j8
reference_id
reference_type
scores
url https://github.com/advisories/GHSA-cjvr-mfj7-j4j8
1
reference_url https://github.com/pypa/advisory-database/tree/main/vulns/scrapy/PYSEC-2022-159.yaml
reference_id
reference_type
scores
url https://github.com/pypa/advisory-database/tree/main/vulns/scrapy/PYSEC-2022-159.yaml
2
reference_url https://github.com/scrapy/scrapy
reference_id
reference_type
scores
url https://github.com/scrapy/scrapy
3
reference_url https://github.com/scrapy/scrapy/commit/8ce01b3b76d4634f55067d6cfdf632ec70ba304a
reference_id
reference_type
scores
url https://github.com/scrapy/scrapy/commit/8ce01b3b76d4634f55067d6cfdf632ec70ba304a
4
reference_url https://huntr.dev/bounties/3da527b1-2348-4f69-9e88-2e11a96ac585
reference_id
reference_type
scores
url https://huntr.dev/bounties/3da527b1-2348-4f69-9e88-2e11a96ac585
5
reference_url https://lists.debian.org/debian-lts-announce/2022/03/msg00021.html
reference_id
reference_type
scores
url https://lists.debian.org/debian-lts-announce/2022/03/msg00021.html
6
reference_url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008234
reference_id 1008234
reference_type
scores
url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008234
7
reference_url https://nvd.nist.gov/vuln/detail/CVE-2022-0577
reference_id CVE-2022-0577
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2022-0577
8
reference_url https://github.com/scrapy/scrapy/security/advisories/GHSA-cjvr-mfj7-j4j8
reference_id GHSA-cjvr-mfj7-j4j8
reference_type
scores
url https://github.com/scrapy/scrapy/security/advisories/GHSA-cjvr-mfj7-j4j8
fixed_packages
0
url pkg:pypi/scrapy@2.6.1
purl pkg:pypi/scrapy@2.6.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-atnw-pnvj-zkhp
1
vulnerability VCID-n6z2-awrh-7kbg
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/scrapy@2.6.1
aliases CVE-2022-0577, GHSA-cjvr-mfj7-j4j8, PYSEC-2022-159
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-jrh5-kjau-xkar
5
url VCID-n6z2-awrh-7kbg
vulnerability_id VCID-n6z2-awrh-7kbg
summary In scrapy/scrapy, an issue was identified where the Authorization header is not removed during redirects that only change the scheme (e.g., HTTPS to HTTP) but remain within the same domain. This behavior contravenes the Fetch standard, which mandates the removal of Authorization headers in cross-origin requests when the scheme, host, or port changes. Consequently, when a redirect downgrades from HTTPS to HTTP, the Authorization header may be inadvertently exposed in plaintext, leading to potential sensitive information disclosure to unauthorized actors. The flaw is located in the _build_redirect_request function of the redirect middleware.
references
0
reference_url https://github.com/scrapy/scrapy/commit/1d0502f25bbe55a22899af915623fda1aaeb9dd8
reference_id
reference_type
scores
url https://github.com/scrapy/scrapy/commit/1d0502f25bbe55a22899af915623fda1aaeb9dd8
1
reference_url https://huntr.com/bounties/27f6a021-a891-446a-ada5-0226d619dd1a
reference_id
reference_type
scores
url https://huntr.com/bounties/27f6a021-a891-446a-ada5-0226d619dd1a
fixed_packages
0
url pkg:pypi/scrapy@2.11.2
purl pkg:pypi/scrapy@2.11.2
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/scrapy@2.11.2
aliases CVE-2024-1968, PYSEC-2024-258
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-n6z2-awrh-7kbg
Fixing_vulnerabilities
0
url VCID-n6z2-awrh-7kbg
vulnerability_id VCID-n6z2-awrh-7kbg
summary In scrapy/scrapy, an issue was identified where the Authorization header is not removed during redirects that only change the scheme (e.g., HTTPS to HTTP) but remain within the same domain. This behavior contravenes the Fetch standard, which mandates the removal of Authorization headers in cross-origin requests when the scheme, host, or port changes. Consequently, when a redirect downgrades from HTTPS to HTTP, the Authorization header may be inadvertently exposed in plaintext, leading to potential sensitive information disclosure to unauthorized actors. The flaw is located in the _build_redirect_request function of the redirect middleware.
references
0
reference_url https://github.com/scrapy/scrapy/commit/1d0502f25bbe55a22899af915623fda1aaeb9dd8
reference_id
reference_type
scores
url https://github.com/scrapy/scrapy/commit/1d0502f25bbe55a22899af915623fda1aaeb9dd8
1
reference_url https://huntr.com/bounties/27f6a021-a891-446a-ada5-0226d619dd1a
reference_id
reference_type
scores
url https://huntr.com/bounties/27f6a021-a891-446a-ada5-0226d619dd1a
fixed_packages
0
url pkg:pypi/scrapy@2.0.0
purl pkg:pypi/scrapy@2.0.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-4q2x-51p4-eygm
1
vulnerability VCID-4yce-5hbd-4kbx
2
vulnerability VCID-atnw-pnvj-zkhp
3
vulnerability VCID-eps3-2rkz-r3gf
4
vulnerability VCID-jrh5-kjau-xkar
5
vulnerability VCID-n6z2-awrh-7kbg
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/scrapy@2.0.0
1
url pkg:pypi/scrapy@2.11.2
purl pkg:pypi/scrapy@2.11.2
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/scrapy@2.11.2
aliases CVE-2024-1968, PYSEC-2024-258
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-n6z2-awrh-7kbg
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:pypi/scrapy@2.0.0