{"answers":{"affected":"3 open source packages ship an affected version, including scrapy and Scrapy. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-1968 exists.","fix":"Upgrade scrapy to a fixed version for your release line: 2.0.0 or 2.11.2.","what":"CVE-2024-1968 is a high-severity vulnerability in scrapy/scrapy, published on 20 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-1968 and fix it if it is affected.\n\nWhat it is: CVE-2024-1968 is a high-severity vulnerability in scrapy/scrapy, published on 20 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-1968 exists.\n\nAffected packages and fixed versions:\n- scrapy (PyPI): affected all versions; fixed in 2.0.0, 2.11.2\n- scrapy (PyPI): affected all versions; fixed in 2.11.2\n- Scrapy (PyPI): affected all versions; fixed in 2.11.2\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-2024-1968/ (Markdown: https://insights.sbomify.com/CVE-2024-1968/index.md)","id":"CVE-2024-1968","markdown":"https://insights.sbomify.com/CVE-2024-1968/index.md","name":"CVE-2024-1968","record":{"aliases":["DEBIAN-CVE-2024-1968","GHSA-4qqq-9vqf-3h3f","PYSEC-2024-258","UBUNTU-CVE-2024-1968","openSUSE-SU-2024:14130-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python web scraping library","requires_auth":"none","summary":"Attackers can intercept sensitive Authorization headers during HTTPS to HTTP redirects, exposing credentials to unauthorized parties.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"scrapy","vendor":"scrapy"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"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.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Authorization Header Leakage in scrapy/scrapy on Scheme Change Redirects","id":"CVE-2024-1968","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":4,"n_references":2,"next":{"headline":"Heap buffer overflow","id":"CVE-2024-1969"},"packages":[{"ecosystem":"PyPI","fixed":["2.11.2"],"introduced":["0"],"last_affected":[],"package":"Scrapy","purl":null,"source":"GHSA-4qqq-9vqf-3h3f"},{"ecosystem":"PyPI","fixed":["2.0.0","2.11.2"],"introduced":["0","2.0.0"],"last_affected":[],"package":"scrapy","purl":"pkg:pypi/scrapy","source":"PYSEC-2024-258"},{"ecosystem":"PyPI","fixed":["2.11.2"],"introduced":["0"],"last_affected":[],"package":"scrapy","purl":"pkg:pypi/scrapy","source":"GHSA-4qqq-9vqf-3h3f"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.11.2-1.1"],"introduced":["0"],"last_affected":[],"package":"python-Scrapy","purl":"pkg:rpm/opensuse/python-Scrapy\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14130-1"}],"prev":{"headline":"Server-Side Request Forgery Vulnerability in Haivision Products","id":"CVE-2024-1965"},"products":["scrapy/scrapy"],"published":"2024-05-20","related":[{"cvss_score":7.5,"headline":"XML External Entity (XXE) Vulnerability in scrapy/scrapy","id":"CVE-2024-3572","kev_date_added":null,"published":"2024-04-16"},{"cvss_score":7.5,"headline":"Authorization Header Leak During Cross-Domain Redirect in scrapy/scrapy","id":"CVE-2024-3574","kev_date_added":null,"published":"2024-04-16"},{"cvss_score":7.5,"headline":"ReDoS Vulnerability in scrapy/scrapy's XMLFeedSpider","id":"CVE-2024-1892","kev_date_added":null,"published":"2024-02-28"},{"cvss_score":7.5,"headline":"Scrapy denial of service vulnerability","id":"CVE-2017-14158","kev_date_added":null,"published":"2017-09-05"}],"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["scrapy"]},"summary":"Attackers can intercept sensitive Authorization headers during HTTPS to HTTP redirects, exposing credentials to unauthorized parties.","url":"https://insights.sbomify.com/CVE-2024-1968/"}