{"answers":{"affected":"5 open source packages ship an affected version, including scrapy. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3574 exists.","fix":"Upgrade scrapy to a fixed version for your release line: 1.8.4 or 2.11.1.","what":"CVE-2024-3574 is a high-severity vulnerability in scrapy/scrapy, published on 16 Apr 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-3574 and fix it if it is affected.\n\nWhat it is: CVE-2024-3574 is a high-severity vulnerability in scrapy/scrapy, published on 16 Apr 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-3574 exists.\n\nAffected packages and fixed versions:\n- scrapy (PyPI): affected all versions; fixed in 1.8.4, 2.11.1\n- scrapy (PyPI): affected all versions; fixed in 1.8.4\n- scrapy (PyPI): affected all versions; fixed in 1.8.4\n- scrapy (PyPI): affected from 2; fixed in 2.11.1\n- scrapy (PyPI): affected from 2; fixed in 2.11.1\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-3574/ (Markdown: https://insights.sbomify.com/CVE-2024-3574/index.md)","id":"CVE-2024-3574","markdown":"https://insights.sbomify.com/CVE-2024-3574/index.md","name":"CVE-2024-3574","record":{"aliases":["DEBIAN-CVE-2024-3574","GHSA-cw9j-q3vf-hrrv","PYSEC-2026-1908","UBUNTU-CVE-2024-3574"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Python web scraping library","requires_auth":"none","summary":"Attackers can steal Authorization headers via cross-domain redirects in Scrapy, potentially leading to account hijacking.","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 version 2.10.1, an issue was identified where the Authorization header, containing credentials for server authentication, is leaked to a third-party site during a cross-domain redirect. This vulnerability arises from the failure to remove the Authorization header when redirecting across domains. The exposure of the Authorization header to unauthorized actors could potentially allow for account hijacking.","ecosystems":["PyPI"],"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 Leak During Cross-Domain Redirect in scrapy/scrapy","id":"CVE-2024-3574","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":5,"n_references":2,"next":{"headline":"Cross-site Scripting (XSS) - Stored in mindsdb/mindsdb","id":"CVE-2024-3575"},"packages":[{"ecosystem":"PyPI","fixed":["1.8.4","2.11.1"],"introduced":["0","2"],"last_affected":[],"package":"scrapy","purl":"pkg:pypi/scrapy","source":"PYSEC-2026-1908"},{"ecosystem":"PyPI","fixed":["1.8.4"],"introduced":["0"],"last_affected":[],"package":"scrapy","purl":null,"source":"GHSA-cw9j-q3vf-hrrv"},{"ecosystem":"PyPI","fixed":["1.8.4"],"introduced":["0"],"last_affected":[],"package":"scrapy","purl":"pkg:pypi/scrapy","source":"GHSA-cw9j-q3vf-hrrv"},{"ecosystem":"PyPI","fixed":["2.11.1"],"introduced":["2"],"last_affected":[],"package":"scrapy","purl":null,"source":"GHSA-cw9j-q3vf-hrrv"},{"ecosystem":"PyPI","fixed":["2.11.1"],"introduced":["2"],"last_affected":[],"package":"scrapy","purl":"pkg:pypi/scrapy","source":"GHSA-cw9j-q3vf-hrrv"}],"prev":{"headline":"Local File Inclusion (LFI) via Scheme Confusion in mlflow/mlflow","id":"CVE-2024-3573"},"products":["scrapy/scrapy"],"published":"2024-04-16","related":[{"cvss_score":7.5,"headline":"Authorization Header Leakage in scrapy/scrapy on Scheme Change Redirects","id":"CVE-2024-1968","kev_date_added":null,"published":"2024-05-20"},{"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":"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":"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 steal Authorization headers via cross-domain redirects in Scrapy, potentially leading to account hijacking.","url":"https://insights.sbomify.com/CVE-2024-3574/"}