Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker positions redirect target under their control
-
DeliveryVictim Erlang app sends HTTP/3 request with Authorization/Cookie headers and follow_redirect enabled
-
ExploitRedirect-issuing server responds with 3xx to attacker-controlled origin
-
Executionhackney_h3.erl forwards credential headers unchanged to new origin
-
PersistAttacker captures credential headers
-
ImpactAttacker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Denial of service in benoitc hackney (Erlang HTTP client) versions 2.0.0 through 4.0.0 allows a malicious WebSocket serv
Denial of service in benoitc hackney (Erlang HTTP client) 2.0.0 through 4.0.0 allows remote unauthenticated attackers to
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
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
Denial of service in benoitc hackney (Erlang HTTP client) versions 0.10.0 through 4.0.0 lets a hostile SOCKS5 or HTTP CO
CRLF injection in hackney (Erlang HTTP client, versions 2.0.0-4.0.1) enables header injection into outbound WebSocket up
SSRF allowlist bypass in hackney (Erlang HTTP client) versions 0.13.0 through before 4.0.1 allows attackers who control
HTTP Request Splitting via CRLF injection in hackney, the Erlang/Elixir HTTP client library, allows an attacker who cont
Improper certificate validation in the Erlang HTTP client hackney (1.24.0 through 4.8.x) lets an on-path attacker impers
Memory exhaustion in the Erlang hackney HTTP client (2.0.0-beta.1 through 4.8.x) lets any server the client requests for
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
CRLF injection in the hackney Erlang HTTP client library's hackney_cookie:setcookie/3 function enables HTTP response spl
EUVD-2026-31692
GHSA-h73q-4w9q-82h4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB