CVE catalog

CVE-2021-41125

Scrapy vulnerabilities

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
1.26% · Oct 25, 2026

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

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-scrapysid2.19.0-2fixed
Debianpython-scrapyforky2.19.0-2fixed
Debianpython-scrapytrixie2.12.0-2fixed
Debianpython-scrapybookworm2.8.0-2fixed
Ubuntupython-scrapynoble2.11.1-1ubuntu0.1~esm2fixed
Ubuntupython-scrapy-docnoble2.11.1-1ubuntu0.1~esm2fixed
Ubuntupython3-scrapynoble2.11.1-1ubuntu0.1~esm2fixed
Ubuntupython-scrapypro2.10.0-1vulnerable
Ubuntupython-scrapypro2.11.0-1vulnerable
Ubuntupython-scrapypro2.11.0-2vulnerable
Ubuntupython-scrapypro2.11.1-1vulnerable
Ubuntupython-scrapypro2.11.1-1ubuntu0.1~esm2fixed
Ubuntupython-scrapy16.041.0.0-1vulnerable
Ubuntupython-scrapy16.041.0.3-1vulnerable
Ubuntupython-scrapypro1.7.3-1vulnerable
Ubuntupython-scrapypro1.7.3-1ubuntu0.1~esm1fixed
Opensusepython-Scrapytumbleweed2.5.1-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-scrapysourcesid2.5.1-1not yet assignedNot reportedNot reported
Debianpython-scrapysourceforky2.5.1-1not yet assignedNot reportedNot reported
Debianpython-scrapysourcetrixie2.5.1-1not yet assignedNot reportedNot reported
Debianpython-scrapysourcebookworm2.5.1-1not yet assignedNot reportedNot reported
Ubuntupython-scrapydebnoble2.11.1-1ubuntu0.1~esm2Not reportedNot reportedNot reported
Ubuntupython-scrapy-docdebnoble2.11.1-1ubuntu0.1~esm2Not reportedNot reportedNot reported
Ubuntupython3-scrapydebnoble2.11.1-1ubuntu0.1~esm2Not reportedNot reportedNot reported
Ubuntupython-scrapydebpro2.11.1-1ubuntu0.1~esm2Not reportedUSN-7476-1Not reported
Ubuntupython-scrapydebpro1.7.3-1ubuntu0.1~esm1Not reportedUBUNTU-CVE-2021-41125Not reported
Opensusepython-Scrapyrpmtumbleweed2.5.1-1.1Not reportedOPENSUSE-SU-2024:11558-1Not reported

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [python-Scrapy]

    Details (1)
    • 2.17.0+git7-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.5.1-1.1

      Version impact unknown

      usn · python-Scrapy · opensuse · tumbleweed

  • Source package: [python-Scrapy]

    Details (1)
    • 2.17.0+git7-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.5.1-1.1

      Version impact unknown

      usn · python-Scrapy · opensuse · tumbleweed

  • Source package: [python-Scrapy]

    Details (1)
    • 2.17.0+git7-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.5.1-1.1

      Version impact unknown

      usn · python-Scrapy · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • Source package: [python-scrapy]

    Details (2)
    • 2.8.0-2 · all · bookworm

      Fixed · Fixed: 2.5.1-1

      usn · python-scrapy · debian · bookworm; usn · python-scrapy · debian · 12

    • 2.8.0-2 · all · bookworm

      Fixed · Fixed: 2.5.1-1

      usn · python-scrapy · debian · bookworm; usn · python-scrapy · debian · 12

  • Source package: [python-scrapy]

    Details (2)
    • 2.8.0-2 · all · bookworm

      Fixed · Fixed: 2.5.1-1

      usn · python-scrapy · debian · bookworm; usn · python-scrapy · debian · 12

    • 2.8.0-2 · all · bookworm

      Fixed · Fixed: 2.5.1-1

      usn · python-scrapy · debian · bookworm; usn · python-scrapy · debian · 12

[Debian 13 (Trixie)]

  • Source package: [python-scrapy]

    Details (2)
    • 2.12.0-2 · all · trixie

      Fixed · Fixed: 2.5.1-1

      usn · python-scrapy · debian · 13

    • 2.12.0-2 · all · trixie

      Fixed · Fixed: 2.5.1-1

      usn · python-scrapy · debian · 13

  • Source package: [python-scrapy]

    Details (2)
    • 2.12.0-2 · all · trixie

      Fixed · Fixed: 2.5.1-1

      usn · python-scrapy · debian · 13

    • 2.12.0-2 · all · trixie

      Fixed · Fixed: 2.5.1-1

      usn · python-scrapy · debian · 13

Observed:

References