Skip to main content

hackney EUVDEUVD-2026-31689

| CVE-2026-47076 MEDIUM
Interpretation Conflict (CWE-436)
2026-05-25 EEF GHSA-pj7v-xfvx-wmjq
6.9
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

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

  1. Access
    Supply percent-encoded IP host in URL
  2. Delivery
    Submit to hackney-backed application endpoint
  3. Exploit
    Application validates host via OTP inet:parse_address (non-IP, allowlist passes)
  4. Execution
    hackney_url:normalize/2 decodes host to real IP
  5. Persist
    hackney opens TCP connection to internal target
  6. Impact
    Retrieve sensitive data from metadata service or internal admin interface

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
Exploitation Conditions

Exploitation requires two simultaneous conditions: (1) the target application uses hackney to make HTTP requests where the URL or host component is fully or partially attacker-influenced (e.g., a URL-fetch proxy, webhook dispatcher, or link preview service), AND (2) the application implements SSRF allowlist validation on the pre-normalized URL using OTP's uri_string:parse/1 or inet:parse_address/1 - the specific Erlang/OTP primitives that do not decode percent-escapes in hostnames. Applications with no SSRF controls at all are already fully vulnerable to SSRF by other means and do not depend on this differential to be exploited. Limiting factors: AT:P in the CVSS 4.0 vector confirms that specific deployment conditions must be present; SSVC Automatable:no indicates mass-exploitation tooling is not viable; the attack requires knowledge of internal target addresses (metadata service IPs, RFC1918 ranges) and the percent-encoding bypass technique. There is no authentication requirement (PR:N) from hackney's side - the constraint is entirely on the application's exposure of URL input to attackers.

Impact

The CVSS 4.0 score of 6.9 with vector AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N carries a notable tension: AV:L (Local attack vector) indicates the attacker must operate within the vulnerable component's local execution context, yet the described exploitation mechanism is a classic network-SSRF pattern where an attacker supplies a crafted URL to a network-facing application. This inconsistency should be verified against the vendor advisory - the AV:L designation may reflect that hackney is scored as a library where exploitation is modeled as a local caller supplying malicious input, not a remote attacker directly reaching the socket. AT:P (attack requirements present) correctly captures that the victim application must implement caller-side SSRF validation using OTP primitives for the bypass to be meaningful; applications with no SSRF controls are already fully vulnerable and do not depend on this differential. VC:H and SC:H signal that successful exploitation yields high-confidentiality impact on both the local component and downstream systems (e.g., cloud metadata yielding IAM credentials). SSVC rates exploitation as poc (proof-of-concept available) but not automatable with only partial technical impact, and EPSS of 0.01% at the 2nd percentile suggests limited real-world exploitation at time of analysis. No CISA KEV listing. Overall risk priority is moderate-to-high for applications that use hackney to proxy attacker-influenced URLs and rely on OTP-based SSRF allowlists - the very pattern most Erlang/Elixir SSRF mitigations are built on.

Exploit ScenarioDerived

An attacker submits a crafted URL such as http://%31%36%39%2E%32%35%34%2E%31%36%39%2E%32%35%34/latest/meta-data/iam/security-credentials/ to a web application that uses hackney to fetch URLs on behalf of users. The application's SSRF allowlist checks the host using OTP's inet:parse_address/1, sees the percent-encoded string as a non-IP hostname, and allows the request. hackney_url:normalize/2 then decodes the host to 169.254.169.254, opens a TCP connection to the cloud instance metadata service, and returns IAM role credentials to the attacker. A proof-of-concept is available per SSVC assessment, though SSVC rates the attack as not automatable, indicating per-target manual crafting is required.

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

SSRF allowlist bypass in hackney (Erlang HTTP client) versions 0.13.0 through before 4.0.1 allows attackers who control URL input to circumvent application-level SSRF protections by supplying percent-encoded IP addresses as hostnames. The parser differential lies in hackney_url:normalize/2 decoding the host component post-parse: OTP's uri_string:parse/1 and inet:parse_address/1 see %31%36%39%2E%32%35%34%2E%31%36%39%2E%32%35%34 as a non-IP string (allowlist passes), while hackney then decodes it to 169.254.169.254 and establishes the TCP connection. A proof-of-concept exists per SSVC assessment; no active exploitation is confirmed in CISA KEV, and EPSS is very low at 0.01% (2nd percentile).

RemediationAI

Upgrade hackney to version 4.0.1 or later, which is the vendor-released patch per the advisory at https://github.com/benoitc/hackney/security/advisories/GHSA-pj7v-xfvx-wmjq. The fix (commit 452620a92ec1da2e6b4862a049a2a4f04b42068f at https://github.com/benoitc/hackney/commit/452620a92ec1da2e6b4862a049a2a4f04b42068f) adds a post-decode check inside normalize/2: if the percent-decoded host parses as an IP address via inet_parse:address/1 but the original pre-decoded form did not, the call raises {invalid_url_host, Host0} - rejecting the differential entirely while preserving IDN and percent-encoded UTF-8 hostnames. If immediate upgrade is not feasible, a compensating control is to move SSRF allowlist validation to execute after calling hackney_url:normalize/2 explicitly, so validation inspects the already-decoded host - this requires application-level refactoring and care to avoid race conditions between normalize and request dispatch. Defense-in-depth via network-layer blocking of 169.254.169.254 and RFC1918 ranges reduces blast radius but does not address all internal targets (e.g., loopback admin interfaces on non-standard ports) and should not be treated as a sufficient substitute for patching.

Affected VersionsENISA

hackney 0.13.0 <4.0.1
hackney 4d725507588942fd00efca15b86da3273656510a <452620a92ec1da2e6b4862a049a2a4f04b42068f

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

CWE-436 (Interpretation Conflict) describes vulnerabilities where two components interpret the same data differently, creating an exploitable gap. Here, hackney_url:normalize/2 applies percent-decoding to the URL host field after OTP has already parsed the URL into a #hackney_url{} record - a deliberate normalization step with no caller opt-out. OTP's uri_string:parse/1 and inet:parse_address/1, which applications use to validate hosts against SSRF allowlists, intentionally do not decode percent-escapes in hostnames (RFC 3986 does not require IP literals to be percent-encoded). The result is that any caller performing allowlist validation on the pre-normalized URL operates on a fundamentally different value than hackney uses for connection. The affected CPE is cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:* across all Erlang/OTP platforms. Because hackney:request/5 unconditionally invokes normalize/2 with no bypass mechanism, every code path accepting binary or list URLs is vulnerable. Specially crafted targets include 127.0.0.1 (loopback admin interfaces), 169.254.169.254 (cloud instance metadata services), and arbitrary RFC1918 networks.

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.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

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

CVSS VectorVendor: EEF

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

Lifecycle Timeline

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

DescriptionCVE.org

Interpretation Conflict vulnerability in benoitc hackney allows Server Side Request Forgery. hackney_url:normalize/2 URL-decodes the host component after the URL has been parsed into a #hackney_url{} record. OTP's uri_string:parse/1 and inet:parse_address/1 do not decode percent-escapes in the host, so a URL such as http://%31%32%37%2E%30%2E%30%2E%31/ is seen by a caller's allowlist validator with host %31%32%37%2E%30%2E%30%2E%31 (not an IP address), which passes the allowlist check. hackney's normalizer then decodes the host to 127.0.0.1 and opens a TCP connection to loopback. Because hackney:request/5 always calls hackney_url:normalize/2 with no opt-out, every request that takes a binary or list URL is affected. The same technique reaches cloud instance metadata services (169.254.169.254), RFC1918 networks, and any admin interface listening on localhost.

This issue affects hackney: from 0.13.0 before 4.0.1.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% 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
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

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-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-47070 MEDIUM POC
6.0 May 25

Credential leakage in the hackney Erlang HTTP client library (versions 3.1.1 through before 4.0.1) allows a malicious or

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