Skip to main content

hackney CVE-2026-47070

| EUVDEUVD-2026-31692 MEDIUM
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-05-25 EEF GHSA-h73q-4w9q-82h4
6.0
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker positions redirect target under their control
  2. Delivery
    Victim Erlang app sends HTTP/3 request with Authorization/Cookie headers and follow_redirect enabled
  3. Exploit
    Redirect-issuing server responds with 3xx to attacker-controlled origin
  4. Execution
    hackney_h3.erl forwards credential headers unchanged to new origin
  5. Persist
    Attacker captures credential headers
  6. Impact
    Attacker replays credentials to impersonate victim

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of the following to be true simultaneously: (1) the application uses hackney versions 3.1.1 through pre-4.0.1 and specifically the HTTP/3 transport (hackney_h3.erl), not the default HTTP/1.1 path; (2) the client call is made with the follow_redirect option enabled; (3) the outbound request includes at least one of Authorization, Cookie, or Proxy-Authorization headers; and (4) an attacker can cause the initial HTTP/3 server to respond with a 3xx redirect to a different origin (different scheme, host, or port), whether by compromising that server, controlling a CNAME/DNS entry, or acting as a malicious service the application legitimately contacts. Exploitation is limited by UI:P - a human or automated process must trigger the outbound HTTP/3 request - and AT:P - the attacker cannot self-serve the redirect without some control over the redirect-issuing server. The vulnerability does NOT affect HTTP/1.1 or HTTP/2 request paths, which have the same_origin guard from CVE-2018-1000007. Setting location_trusted to false (the default) does not protect users because hackney_h3.erl ignores that option entirely in the vulnerable versions.

Impact

The CVSS 4.0 base score of 6.0 reflects meaningful but bounded risk: AV:N (network exploitable), AC:L (no special complexity once conditions are met), PR:N (no attacker privileges needed on the victim system), but UI:P (the victim client must initiate a request) and AT:P (attack requirements - HTTP/3 with follow_redirect and credential headers - must be present). Confidentiality impact on the vulnerable system is rated VC:H, confirming full credential theft is the realized impact. EPSS at 0.04%/13th percentile is low, and the absence of a CISA KEV entry further suggests no observed mass exploitation. However, SSVC Automatable:no aligns with AT:P - the attack cannot be launched blindly at scale; an attacker needs to control or manipulate a redirect target that the victim client will contact. SSVC Technical Impact:partial reflects that only confidentiality is affected (VI:N, VA:N in CVSS). Overall: real risk for applications using hackney's HTTP/3 client with authentication headers and automatic redirect following, but not a widespread spray-and-pray threat. The feature-parity gap with CVE-2018-1000007 increases credibility that the scenario is realistic.

Exploit ScenarioDerived

A publicly available proof-of-concept exists per SSVC assessment (Exploitation: poc). In a realistic scenario, an attacker compromises or controls a legitimate API endpoint that the victim Erlang application contacts over HTTP/3 with Authorization: Bearer <token> and follow_redirect enabled; the attacker's server responds with a 302 redirect to an attacker-owned host, and hackney_h3.erl forwards the Authorization header verbatim to that host, delivering the bearer token to the attacker without any user awareness.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

Credential leakage in the hackney Erlang HTTP client library (versions 3.1.1 through before 4.0.1) allows a malicious or compromised redirect target to capture Authorization, Cookie, and Proxy-Authorization headers forwarded verbatim by the HTTP/3 redirect handler. The hackney_h3.erl module, introduced for HTTP/3 support, omitted the cross-origin credential-stripping logic (maybe_strip_auth_on_redirect/2) that was added to the main hackney.erl module following CVE-2018-1000007, creating a feature-parity gap exploitable when clients use follow_redirect with HTTP/3 and credential headers. No active exploitation is confirmed (not in CISA KEV), but SSVC assessment confirms a proof-of-concept exists; EPSS is low at 0.04% (13th percentile), consistent with targeted rather than opportunistic exploitation.

RemediationAI

Vendor-released patch: upgrade to hackney 4.0.1 or later. The fix is confirmed in commit c58d5b50bade146360b85caf3dc8065807b08246 (https://github.com/benoitc/hackney/commit/c58d5b50bade146360b85caf3dc8065807b08246), which adds maybe_strip_redirect_headers/4 to hackney_h3.erl performing a same_origin/3 check (comparing scheme, lowercased host, and port) before forwarding headers, and drops Authorization, Cookie, and Proxy-Authorization on cross-origin redirects unless the caller sets location_trusted: true. If an immediate upgrade is not possible, the most effective compensating control is to disable follow_redirect in any HTTP/3 client calls that include credential headers, then implement manual redirect handling with explicit credential stripping before following cross-origin locations - this eliminates the vulnerable code path entirely at the cost of added application logic. Alternatively, restricting outbound HTTP/3 requests to trusted, internally controlled hosts via network policy removes the ability of an attacker-controlled server to issue redirect responses. Setting location_trusted: true is NOT a mitigation - it opts into the vulnerable behavior intentionally and should only be used when the redirect target is fully trusted.

Affected VersionsENISA

hackney e61b7d04b7826847e1efe614106ef4d580c78eab <c58d5b50bade146360b85caf3dc8065807b08246
hackney 3.1.1 <4.0.1

Affected Packages

euvd hackney fix: 4.0.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

hackney is a widely used Erlang HTTP client library maintained by benoitc, identified by CPE cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*. The vulnerability resides in src/hackney_h3.erl, the HTTP/3-specific transport module. CWE-601 (URL Redirection to Untrusted Site) captures the root cause: when handle_redirect processes a 3xx response, it passes the original Headers list directly to do_request_with_redirect without invoking any origin comparison. The main module hackney.erl has carried the same_origin/location_trusted guard since CVE-2018-1000007, but hackney_h3.erl was written without porting that protection. The CVSS 4.0 vector encodes AT:P (Attack Requirements: Present), reflecting that exploitation requires the specific combination of HTTP/3 transport, follow_redirect enabled, and credential headers being present in the outbound request - conditions common in server-to-server API clients but not universal.

Know when Hackney gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (EEF) PRIMARY 6.0 MEDIUM
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

Primary rating from Vendor (EEF) · only source for this CVE.

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
May 26, 2026 - 17:22 NVD
6.0 (MEDIUM)
CVE Published
May 25, 2026 - 14:00 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-47073 HIGH POC
8.7 May 25

Denial of service in benoitc hackney (Erlang HTTP client) versions 2.0.0 through 4.0.0 allows a malicious WebSocket serv

CVE-2026-47067 HIGH POC
8.7 May 25

Denial of service in benoitc hackney (Erlang HTTP client) 2.0.0 through 4.0.0 allows remote unauthenticated attackers to

CVE-2026-47066 HIGH POC
8.7 May 25

Denial-of-service in benoitc's hackney Erlang HTTP client (versions 2.0.0-beta.1 through 4.0.0) allows any HTTP origin s

CVE-2026-47077 HIGH POC
8.2 May 25

Remote denial of service in benoitc hackney 2.0.0 through 4.0.0 lets a malicious HTTP/3 server exhaust a client's BEAM p

CVE-2026-47071 HIGH POC
8.2 May 25

Denial of service in benoitc hackney (Erlang HTTP client) versions 0.10.0 through 4.0.0 lets a hostile SOCKS5 or HTTP CO

CVE-2026-47072 MEDIUM POC
6.9 May 25

CRLF injection in hackney (Erlang HTTP client, versions 2.0.0-4.0.1) enables header injection into outbound WebSocket up

CVE-2026-47076 MEDIUM POC
6.9 May 25

SSRF allowlist bypass in hackney (Erlang HTTP client) versions 0.13.0 through before 4.0.1 allows attackers who control

CVE-2026-47075 MEDIUM POC
6.8 May 25

HTTP Request Splitting via CRLF injection in hackney, the Erlang/Elixir HTTP client library, allows an attacker who cont

CVE-2026-115693 CRITICAL
9.1 Oct 26

Improper certificate validation in the Erlang HTTP client hackney (1.24.0 through 4.8.x) lets an on-path attacker impers

CVE-2026-97200 HIGH
8.2 Oct 26

Memory exhaustion in the Erlang hackney HTTP client (2.0.0-beta.1 through 4.8.x) lets any server the client requests for

CVE-2026-115700 MEDIUM
6.9 Oct 26

Server-side request forgery in the Erlang hackney HTTP client (versions 4.0.1 up to but not including 4.9.0) lets an att

CVE-2026-47069 LOW POC
2.1 May 25

CRLF injection in the hackney Erlang HTTP client library's hackney_cookie:setcookie/3 function enables HTTP response spl

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy