Technical impact
The vulnerability is an interpretation conflict in the hackney HTTP client library. During URL parsing, the host part is percent‑encoded, then decoded by hackney_url:normalize/2 after the URL is parsed into a record. Because OTP's uri_string:parse/1 and inet:parse_address/1 do not decode percent‑escapes in the host, a URL such as http://%31%32%37%2E%30%2E%30%2E%31/ is seen by an allowlist validator with host %31%32%37%2E%30%2E%30%2E%31, which passes the allowlist check. hackney's normalizer then decodes the host to 127.0.0.1 and opens a TCP connection, allowing an attacker who can influence a Hackney request to reach internal services, cloud metadata endpoints, RFC1918 networks, or any local admin interfaces. This condition enables server side request forgery, compromising confidentiality and integrity.
Affected Systems
The affected product is the Hackney HTTP client library, distributed by Benoit C. Versions from 0.13.0 through 4.0.0 are vulnerable. The library is widely used in Erlang and BEAM‑based applications.
Risk and Exploitability
The CVSS score of 6.9 classifies the weakness as medium severity. The EPSS score is 0.00229 (less than 1%), and the vulnerability is not listed in the CISA KEV catalog. The exploit requires an application to pass a specifically crafted URL to hackney:request/5; the percent‑encoded host bypasses the allowlist and activates the vulnerability. Because the flaw is exercised on every URL passed to hackney, any vulnerable application that uses the library for outbound HTTP requests is potentially exposed. Given the medium CVSS score, the low EPSS probability, and lack of widespread exploitation data, the risk is moderate but should be addressed promptly.
Github GHSA