{"id":"CVE-2024-3574","aliases":["CVE-2024-3574","GHSA-cw9j-q3vf-hrrv","PYSEC-2026-1908"],"related":[],"kind":"vulnerability","state":"published","title":"Authorization Header Leak During Cross-Domain Redirect in scrapy/scrapy","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen you send a request with the `Authorization` header to one domain, and the response asks to redirect to a different domain, Scrapy’s built-in redirect middleware creates a follow-up redirect request that keeps the original `Authorization` header, leaking its content to that second domain.\n\nThe [right behavior](https://fetch.spec.whatwg.org/#ref-for-cors-non-wildcard-request-header-name) would be to drop the `Authorization` header instead, in this scenario.\n\n### Patches\n\nUpgrade to Scrapy 2.11.1.\n\nIf you are using Scrapy 1.8 or a lower version, and upgrading to Scrapy 2.11.1 is not an option, you may upgrade to Scrapy 1.8.4 instead.\n\n### Workarounds\n\nIf you cannot upgrade, make sure that you are not using the `Authentication` header, either directly or through some third-party plugin.\n\nIf you need to use that header in some requests, add `\"dont_redirect\": True` to the `request.meta` dictionary of those requests to disable following redirects for them.\n\nIf you need to keep (same domain) redirect support on those requests, make sure you trust the target website not to redirect your requests to a different domain.\n\n### Acknowledgements\n\nThis security issue was reported by @ranjit-git  [through huntr.com](https://huntr.com/bounties/49974321-2718-43e3-a152-62b16eed72a9/).","format":"markdown","source":"ghsa"},{"lang":"es","text":"En la versión 2.10.1 de scrapy, se identificó un problema por el cual el encabezado de Autorización, que contiene las credenciales para la autenticación del servidor, se filtra a un sitio de terceros durante una redirección entre dominios. Esta vulnerabilidad surge de no eliminar el encabezado de Autorización al redireccionar entre dominios. La exposición del encabezado de Autorización a actores no autorizados podría permitir el secuestro de cuentas.","source":"nvd"}],"published":"2024-02-15T15:32:15.000Z","modified":"2026-07-07T17:56:22.401Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"2.11.1","status":"affected"}],"vendor":"scrapy","product":"scrapy/scrapy","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"2.11.1","status":"affected"}],"vendor":"scrapy","product":"scrapy","cpe":"cpe:2.3:a:scrapy:scrapy:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2","status":"affected","fixed":"2.11.1"}],"ecosystem":"PyPI","package":"scrapy","purl":"pkg:pypi/scrapy","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.8.4"}],"ecosystem":"PyPI","package":"scrapy","purl":"pkg:pypi/scrapy","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.11.1"}],"vendor":"scrapy","product":"scrapy","cpe":"cpe:2.3:a:scrapy:scrapy:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.8.4"},{"type":"ecosystem","introduced":"2","status":"affected","fixed":"2.11.1"}],"ecosystem":"PyPI","package":"scrapy","purl":"pkg:pypi/scrapy","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/49974321-2718-43e3-a152-62b16eed72a9","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/scrapy/scrapy/commit/5bcb8fd5019c72d05c4a96da78a7fcb6ecb55b75","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/scrapy/scrapy/security/advisories/GHSA-cw9j-q3vf-hrrv","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3574","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/scrapy/scrapy/commit/ee7bd9d217fc126063575d5649f00bdeeca2faae","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/scrapy/scrapy","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/scrapy","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-cw9j-q3vf-hrrv","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-04-18T15:23:27.914Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-3574","url":"https://www.cve.org/CVERecord?id=CVE-2024-3574","licence":"CVE Terms of Use","modified":"2024-08-01T20:12:08.239Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cw9j-q3vf-hrrv","url":"https://github.com/advisories/GHSA-cw9j-q3vf-hrrv","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:22.401Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-3574","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3574","licence":"Public domain","modified":"2026-06-17T07:44:32.720Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1908","url":"https://osv.dev/vulnerability/PYSEC-2026-1908","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:52.911Z"}],"updatedAt":"2026-11-25T22:58:39.242Z","epss":{"score":0.00648,"percentile":0.52393,"date":"2026-12-02T12:00:21.000Z"}}