{"id":"CVE-2026-47070","state":"PUBLISHED","title":"HTTP/3 redirect handler leaks Authorization and Cookie headers to cross-origin redirect target in hackney","description":"Sensitive Data Exposure vulnerability in benoitc hackney allows Retrieve Embedded Sensitive Data. The HTTP/3 redirect handler in src/hackney_h3.erl passes the original request headers unchanged to the redirect target without performing any cross-origin check. When a client issues an HTTP/3 request with follow_redirect enabled and includes Authorization or Cookie headers, a server responding with a 3xx redirect to a different host will cause the client to forward those credentials verbatim to the new origin.\n\nThe main hackney.erl module has maybe_strip_auth_on_redirect/2 (guarded by the location_trusted option) to address CVE-2018-1000007, but hackney_h3.erl is missing this protection entirely.\n\nThis issue affects hackney: from 3.1.1 before 4.0.1.","publishedAt":"2026-05-25T14:00:46.420Z","updatedAt":"2026-05-27T15:41:16.046Z","severity":{"score":6,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","source":"EEF"},"assigner":"EEF","products":["benoitc hackney"],"affected":[{"vendor":"benoitc","product":"hackney","packageName":"hackney","packageURL":"pkg:hex/hackney","defaultStatus":"unaffected","versions":[{"version":"3.1.1","status":"affected","lessThan":"4.0.1","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*"],"modules":["hackney_h3"],"programFiles":["src/hackney_h3.erl"],"programRoutines":[{"name":"hackney_h3:handle_redirect/11"},{"name":"hackney_h3:do_request_with_redirect/8"}],"repo":"https://github.com/benoitc/hackney"},{"vendor":"benoitc","product":"hackney","packageName":"benoitc/hackney","packageURL":"pkg:github/benoitc/hackney","defaultStatus":"unaffected","versions":[{"version":"e61b7d04b7826847e1efe614106ef4d580c78eab","status":"affected","lessThan":"c58d5b50bade146360b85caf3dc8065807b08246","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*"],"modules":["hackney_h3"],"programFiles":["src/hackney_h3.erl"],"programRoutines":[{"name":"hackney_h3:handle_redirect/11"},{"name":"hackney_h3:do_request_with_redirect/8"}],"repo":"https://github.com/benoitc/hackney"}],"references":["https://github.com/benoitc/hackney/security/advisories/GHSA-h73q-4w9q-82h4","https://cna.erlef.org/cves/CVE-2026-47070.html","https://osv.dev/vulnerability/EEF-CVE-2026-47070","https://github.com/benoitc/hackney/commit/c58d5b50bade146360b85caf3dc8065807b08246"],"weaknesses":["CWE-601"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/47xxx/CVE-2026-47070.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-47070","state":"PUBLISHED","datePublished":"2026-05-25T14:00:46.420Z","dateUpdated":"2026-05-27T15:41:16.046Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-05-18T17:28:08.322Z"},"containers":{"cna":{"title":"HTTP/3 redirect handler leaks Authorization and Cookie headers to cross-origin redirect target in hackney","descriptions":[{"lang":"en","value":"Sensitive Data Exposure vulnerability in benoitc hackney allows Retrieve Embedded Sensitive Data. The HTTP/3 redirect handler in src/hackney_h3.erl passes the original request headers unchanged to the redirect target without performing any cross-origin check. When a client issues an HTTP/3 request with follow_redirect enabled and includes Authorization or Cookie headers, a server responding with a 3xx redirect to a different host will cause the client to forward those credentials verbatim to the new origin.\n\nThe main hackney.erl module has maybe_strip_auth_on_redirect/2 (guarded by the location_trusted option) to address CVE-2018-1000007, but hackney_h3.erl is missing this protection entirely.\n\nThis issue affects hackney: from 3.1.1 before 4.0.1."}],"affected":[{"vendor":"benoitc","product":"hackney","packageName":"hackney","packageURL":"pkg:hex/hackney","defaultStatus":"unaffected","versions":[{"version":"3.1.1","status":"affected","lessThan":"4.0.1","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*"],"modules":["hackney_h3"],"programFiles":["src/hackney_h3.erl"],"programRoutines":[{"name":"hackney_h3:handle_redirect/11"},{"name":"hackney_h3:do_request_with_redirect/8"}],"repo":"https://github.com/benoitc/hackney"},{"vendor":"benoitc","product":"hackney","packageName":"benoitc/hackney","packageURL":"pkg:github/benoitc/hackney","defaultStatus":"unaffected","versions":[{"version":"e61b7d04b7826847e1efe614106ef4d580c78eab","status":"affected","lessThan":"c58d5b50bade146360b85caf3dc8065807b08246","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*"],"modules":["hackney_h3"],"programFiles":["src/hackney_h3.erl"],"programRoutines":[{"name":"hackney_h3:handle_redirect/11"},{"name":"hackney_h3:do_request_with_redirect/8"}],"repo":"https://github.com/benoitc/hackney"}],"references":[{"url":"https://github.com/benoitc/hackney/security/advisories/GHSA-h73q-4w9q-82h4","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-47070.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-47070","tags":["related"]},{"url":"https://github.com/benoitc/hackney/commit/c58d5b50bade146360b85caf3dc8065807b08246","tags":["patch"]}],"metrics":[{"cvssV4_0":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-601","description":"CWE-601 URL Redirection to Untrusted Site ('Open Redirect')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-05-27T15:41:16.046Z"},"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*","versionEndExcluding":"4.0.1","versionStartIncluding":"3.1.1","vulnerable":true}],"negate":false,"operator":"AND"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Peter Ullrich"},{"lang":"en","type":"remediation developer","value":"Benoit Chesneau"},{"lang":"en","type":"analyst","value":"Jonatan Männchen / EEF"}],"impacts":[{"capecId":"CAPEC-37","descriptions":[{"lang":"en","value":"CAPEC-37 Retrieve Embedded Sensitive Data"}]}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/benoitc/hackney/security/advisories/GHSA-h73q-4w9q-82h4","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-26T15:47:18.083809Z","id":"CVE-2026-47070","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-26T15:47:21.139Z"}}]}}}