{"answers":{"affected":"3 open source packages ship an affected version, including scrapy-splash. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-41124 in the wild and no public exploit code.","fix":"Upgrade scrapy-splash to 0.8.0 or later.","what":"CVE-2021-41124 is a high-severity vulnerability in scrapy-plugins scrapy-splash, published on 5 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-41124 and fix it if it is affected.\n\nWhat it is: CVE-2021-41124 is a high-severity vulnerability in scrapy-plugins scrapy-splash, published on 5 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-41124 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- scrapy-splash (PyPI): affected all versions; fixed in 0.8.0\n- scrapy-splash (PyPI): affected all versions; fixed in 0.8.0\n- scrapy-splash (PyPI): affected all versions; fixed in 0.8.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-41124/ (Markdown: https://insights.sbomify.com/CVE-2021-41124/index.md)","id":"CVE-2021-41124","markdown":"https://insights.sbomify.com/CVE-2021-41124/index.md","name":"CVE-2021-41124","record":{"aliases":["GHSA-823f-cwm9-4g74","PYSEC-2021-364"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Scrapy Splash plugin","requires_auth":"none","summary":"Scrapy-splash users relying on HttpAuthMiddleware for Splash authentication may leak credentials to target websites during non-Splash requests like robots.txt.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"scrapy-splash","vendor":"zyte"}],"cvss":{"score":7.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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).","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Splash authentication credentials potentially leaked to target websites in scrapy-splash","id":"CVE-2021-41124","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2021"},"n_packages":3,"n_references":2,"next":{"headline":"HTTP authentication credential leak to target websites in scrapy","id":"CVE-2021-41125"},"packages":[{"ecosystem":"PyPI","fixed":["0.8.0"],"introduced":["0"],"last_affected":[],"package":"scrapy-splash","purl":null,"source":"GHSA-823f-cwm9-4g74"},{"ecosystem":"PyPI","fixed":["0.8.0"],"introduced":["0"],"last_affected":[],"package":"scrapy-splash","purl":"pkg:pypi/scrapy-splash","source":"GHSA-823f-cwm9-4g74"},{"ecosystem":"PyPI","fixed":["0.8.0"],"introduced":["0"],"last_affected":[],"package":"scrapy-splash","purl":"pkg:pypi/scrapy-splash","source":"PYSEC-2021-364"}],"prev":{"headline":"Exposure of Sensitive Information to an Unauthorized Actor in WB.UI.Headquarters.dll","id":"CVE-2021-41123"},"products":["scrapy-splash"],"published":"2021-10-05","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["scrapy-plugins"]},"summary":"Scrapy-splash users relying on HttpAuthMiddleware for Splash authentication may leak credentials to target websites during non-Splash requests like robots.txt.","url":"https://insights.sbomify.com/CVE-2021-41124/"}