CVE-2026-47070

HTTP/3 redirect handler leaks Authorization and Cookie headers to cross-origin redirect target in hackney

Published May 25, 2026 CVSS 4.0 · 6 Medium EPSS < 1% KEV · Not listed
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.

The 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.

This issue affects hackney: from 3.1.1 before 4.0.1.

Analysis

AI-generated

Technical impact

The HTTP/3 redirect handler in hackney forwards all original request headers unchanged to any redirect target without performing a cross‑origin check. When a client issues a request with follow_redirect enabled and includes Authorization or Cookie headers, a 3xx redirect to another host will cause the client to resend those sensitive headers verbatim to the new origin, thereby leaking credentials. According to the CVE data, this flaw is classified as CWE‑601, indicating an open redirect leading to unintended data exposure.

Affected Systems

The vulnerability affects the Erlang HTTP client library hackney from version 3.1.1 up to, but not including, 4.0.1. The affected product is benoitc hackney (Erlang).

Risk and Exploitability

The CVSS score of 6 denotes moderate severity. EPSS score of 0.00372 indicates a very low but non‑zero probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is network‑based: an attacker who can cause the client to follow a redirect to a domain under the attacker’s control may obtain the client’s Authorization or Cookie headers and thereby gain unauthorized access. exploitation requires the client to be configured to follow redirects and to send credentials, so it is contingent on the client’s settings but, once triggered, results in credential exposure.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade hackney to version 4.0.1 or later to apply the vendor’s fix that prevents redirect header leakage.
  • If upgrading is not immediately feasible, disable the follow_redirect option or strip Authorization and Cookie headers before making an HTTP/3 request.
  • Configure or enforce the location_trusted option in hackney to ensure that redirects are only followed to trusted origins.

Generated by OpenCVE AI on November 22, 2026 at 23:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-h73q-4w9q-82h4 Hackney: Cross-origin Redirect Leaks Authorization, Cookie, and Request Body
History
Type Values Removed Values Added
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. The 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. This issue affects hackney: from 3.1.1 before 4.0.1. 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. The 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. This issue affects hackney: from 3.1.1 before 4.0.1.
References
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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. The 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. This issue affects hackney: from 3.1.1 before 4.0.1.
Title HTTP/3 redirect handler leaks Authorization and Cookie headers to cross-origin redirect target in hackney
First Time appeared Benoitc
Benoitc hackney
Weaknesses CWE-601
CPEs cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*
Vendors & Products Benoitc
Benoitc hackney
References
Metrics cvssV4_0

{'score': 6, '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'}

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 20, 2026, 8:01 AM
Reserved
May 18, 2026, 5:28 PM
Status
Modified
Published
May 25, 2026, 3:16 PM
Modified
Nov 20, 2026, 8:18 AM