{"cve":"CVE-2024-1968","nvd":{"published":"2024-05-20T08:15:08.850","modified":"2026-06-17T07:05:31.160","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-200"],"references":["https://github.com/scrapy/scrapy/commit/1d0502f25bbe55a22899af915623fda1aaeb9dd8","https://huntr.com/bounties/27f6a021-a891-446a-ada5-0226d619dd1a","https://github.com/scrapy/scrapy/commit/1d0502f25bbe55a22899af915623fda1aaeb9dd8","https://huntr.com/bounties/27f6a021-a891-446a-ada5-0226d619dd1a"],"products":["scrapy:scrapy"],"source":"nvd","synced_at":"2026-10-19T21:50:30.954589733+00:00"},"epss":{"cve":"CVE-2024-1968","score":0.00688,"percentile":0.5273,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-4qqq-9vqf-3h3f","url":"https://osv.dev/vulnerability/GHSA-4qqq-9vqf-3h3f","summary":"Scrapy leaks the authorization header on same-domain but cross-origin redirects","modified":"2025-07-15T18:12:02.837491Z","packages":[{"ecosystem":"PyPI","name":"scrapy","purl":"pkg:pypi/scrapy","ranges":["<2.11.2"],"fixed":["2.11.2"]}]},{"id":"PYSEC-2024-258","url":"https://osv.dev/vulnerability/PYSEC-2024-258","summary":"","modified":"2026-06-10T17:02:40.010041244Z","packages":[{"ecosystem":"PyPI","name":"scrapy","purl":"pkg:pypi/scrapy","ranges":["<2.0.0",">=2.0.0 <2.11.2"],"fixed":["2.0.0","2.11.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}