# CVE-2021-41124: Splash authentication credentials potentially leaked to target websites in scrapy-splash

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.12%, higher than 67% of CVEs (2026-12-02)
- Published: 2021-10-05T21:00:10.000Z
- Modified: 2026-07-08T06:27:36.138Z
- Also known as: GHSA-823f-cwm9-4g74, PYSEC-2021-364
- Weaknesses: CWE-200
- Assigned by: GitHub_M

## Description

Scrapy-splash is a library which provides Scrapy and JavaScript integration. In affected versions users who use [`HttpAuthMiddleware`](http://doc.scrapy.org/en/latest/topics/downloader-middleware.html#module-scrapy.downloadermiddlewares.httpauth) (i.e. the `http_user` and `http_pass` spider attributes) for Splash authentication will have any non-Splash request expose your credentials to the request target. This includes `robots.txt` requests sent by Scrapy when the `ROBOTSTXT_OBEY` setting is set to `True`. Upgrade to scrapy-splash 0.8.0 and use the new `SPLASH_USER` and `SPLASH_PASS` settings instead to set your Splash authentication credentials safely. If you cannot upgrade, set your Splash request credentials on a per-request basis, [using the `splash_headers` request parameter](https://github.com/scrapy-plugins/scrapy-splash/tree/0.8.x#http-basic-auth), instead of defining them globally using the [`HttpAuthMiddleware`](http://doc.scrapy.org/en/latest/topics/downloader-middleware.html#module-scrapy.downloadermiddlewares.httpauth). Alternatively, make sure all your requests go through Splash. That includes disabling the [robots.txt middleware](https://docs.scrapy.org/en/latest/topics/downloader-middleware.html#topics-dlmw-robots).

(As written by CVE List.)

## Affected

- scrapy-plugins scrapy-splash: < 0.8.0
- scrapy-splash (PyPI): before 0.8.0; before 2b253e57fe64ec575079c8cdc99fe2013502ea31
- zyte scrapy-splash: before 0.8.0

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/scrapy-plugins/scrapy-splash/security/advisories/GHSA-823f-cwm9-4g74> (advisory, third-party-advisory, web)
- <https://github.com/scrapy-plugins/scrapy-splash/commit/2b253e57fe64ec575079c8cdc99fe2013502ea31> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41124> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/scrapy-splash/PYSEC-2021-364.yaml> (web)
- <https://github.com/scrapy-plugins/scrapy-splash> (package)
- <https://github.com/scrapy-plugins/scrapy-splash/releases/tag/0.8.0> (web)

## Sources

- CVE List: [CVE-2021-41124](https://www.cve.org/CVERecord?id=CVE-2021-41124), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-823f-cwm9-4g74](https://github.com/advisories/GHSA-823f-cwm9-4g74), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-41124](https://nvd.nist.gov/vuln/detail/CVE-2021-41124), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-364](https://osv.dev/vulnerability/PYSEC-2021-364), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-41124 · Whole record: https://cve.day/CVE-2021-41124.json · Rebuilt by cve.day 2026-11-25T22:58:04.316Z
