{"schemaVersion":3,"id":"CVE-2021-41125","aliases":["GHSA-jwqp-28gf-p498","PYSEC-2021-363","UBUNTU-CVE-2021-41125","DEBIAN-CVE-2021-41125","openSUSE-SU-2024:11558-1"],"status":"published","duplicateOf":null,"title":null,"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`.","dates":{"published":"2021-10-06T17:15:13.000Z","modified":"2024-08-04T02:59:31.432Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.7,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":6.9,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":5.7,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","exploitability":5.4,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01261,"percentile":0.6924,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01261},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01261,"percentile":0.6924}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01261,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01261,"percentile":0.6924}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-522","name":"Insufficiently Protected Credentials","description":"The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/522.html"}],"affected":[{"vendor":"debian","product":"python-scrapy","name":"python-scrapy","label":"python-scrapy","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-scrapy","purlType":"deb","versions":[{"text":"< 2.5.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python-scrapy","name":"python-scrapy","label":"python-scrapy","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python-scrapy","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 1.5.0-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.7.3-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 1.5.0-1ubuntu0.1~esm1 | < 1.7.3-1ubuntu0.1~esm1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0","eol":{"isEol":true,"eolDate":"2022-07-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"9","label":"9 (Stretch)","eolFrom":"2022-07-01T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"9.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"PyPI","product":"scrapy","name":"scrapy","label":"scrapy","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/scrapy","purlType":"pypi","versions":[{"text":"< 1.8.1","noFixRecorded":false,"fixedIn":null},{"text":"< b01d69a1bf48060daec8f751368622352d8b85a6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.0.0, < 2.5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.8.1 | < b01d69a1bf48060daec8f751368622352d8b85a6 | ≥ 2.0.0, < 2.5.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"python-Scrapy&distro=openSUSE Tumbleweed","name":"python-Scrapy","label":"python-Scrapy&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/python-Scrapy&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 2.5.1-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.1-1.1","eol":null,"hubHref":null},{"vendor":"scrapy","product":"scrapy","name":"scrapy","label":"scrapy","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.8.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.0.0, < 2.5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.8.1 | ≥ 2.0.0, < 2.5.1","eol":null,"hubHref":"/vendor/scrapy/scrapy"}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/scrapy/scrapy/security/advisories/GHSA-jwqp-28gf-p498","label":"github.com/scrapy/scrapy/security/advisories/GHSA-jwqp-28gf-p498","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","REPORT","Third Party Advisory"]},{"url":"https://github.com/scrapy/scrapy/commit/b01d69a1bf48060daec8f751368622352d8b85a6","label":"github.com/scrapy/scrapy/commit/b01d69a1bf48060daec8f751368622352d8b85a6","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","REPORT","Patch","Third Party Advisory"]},{"url":"https://w3lib.readthedocs.io/en/latest/w3lib.html#w3lib.http.basic_auth_header","label":"w3lib.readthedocs.io/en/latest/w3lib.html","hostname":"w3lib.readthedocs.io","tags":["X Refsource MISC","WEB","REPORT","Third Party Advisory"]},{"url":"http://doc.scrapy.org/en/latest/topics/downloader-middleware.html#module-scrapy.downloadermiddlewares.httpauth","label":"doc.scrapy.org/en/latest/topics/downloader-middleware.html","hostname":"doc.scrapy.org","tags":["X Refsource MISC","WEB","REPORT","Vendor Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00021.html","label":"lists.debian.org/debian-lts-announce/2022/03/msg00021.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41125","label":"nvd.nist.gov/vuln/detail/CVE-2021-41125","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/scrapy/PYSEC-2021-363.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/scrapy/PYSEC-2021-363.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/scrapy/scrapy","label":"github.com/scrapy/scrapy","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://ubuntu.com/security/CVE-2021-41125","label":"ubuntu.com/security/CVE-2021-41125","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-41125","label":"www.cve.org/CVERecord?id=CVE-2021-41125","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7476-1","label":"ubuntu.com/security/notices/USN-7476-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-41125","label":"security-tracker.debian.org/tracker/CVE-2021-41125","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2021-41125","label":"www.suse.com/security/cve/CVE-2021-41125","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["DLA-2950-1","USN-7476-1"],"duplicates":[],"related":["USN-7476-1"]},"timeline":[{"kind":"published","date":"2021-10-06T17:15:13.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T02:59:31.432Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T22:03:29.618Z","stale":false,"partial":false}}