Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-47070
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 15:11 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 25 May 2026, 14:00 UTC

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.

osv:CVE-2026-47070
Complete source record
{
  "id": "003fafeff068bfdb3cafe5c2c39e8b06c4acbb2d2af879bb64464ef80f5baf6f",
  "url": "https://osv.dev/vulnerability/CVE-2026-47070",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "HTTP/3 redirect handler leaks Authorization and Cookie headers to cross-origin redirect target in hackney",
    "summary": "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.",
    "evidence": "osv:CVE-2026-47070",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-47070",
      "aliases": [
        "CVE-2026-47070",
        "EEF-CVE-2026-47070",
        "GHSA-h73q-4w9q-82h4"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/benoitc/hackney",
              "type": "GIT",
              "events": [
                {
                  "introduced": "84b8c43275921338f053e8212411dcf643d37cb8"
                },
                {
                  "fixed": "c41c8d48ace8141b003f6f1de3ca6734a0c53056"
                },
                {
                  "fixed": "c58d5b50bade146360b85caf3dc8065807b08246"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.1.1"
                      },
                      {
                        "fixed": "4.0.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c58d5b50bade146360b85caf3dc8065807b08246"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.0",
            "3.2.1",
            "3.2.0",
            "3.1.2",
            "3.1.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-47070.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.286675583Z",
      "provider": "osv",
      "references": [
        "https://cna.erlef.org/cves/CVE-2026-47070.html",
        "https://github.com",
        "https://osv.dev/vulnerability/EEF-CVE-2026-47070",
        "https://repo.hex.pm",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47070.json",
        "https://github.com/benoitc/hackney/security/advisories/GHSA-h73q-4w9q-82h4",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-47070",
        "https://github.com/benoitc/hackney/commit/c58d5b50bade146360b85caf3dc8065807b08246",
        "https://github.com/benoitc/hackney"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-601"
        ],
        "cna_assigner": "EEF",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47070.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-47070",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519729,
  "published_at": "2026-05-25T14:00:46.42+00:00"
}