{"id":"CVE-2026-47076","published":"2026-05-25T14:00:46Z","modified":"2026-11-20T08:20:46Z","title":"SSRF allowlist bypass via percent-encoded host in hackney","vendor":"benoitc","product":"hackney","tier":"tail","description":{"text":"Interpretation Conflict vulnerability in benoitc hackney allows Server Side Request Forgery.\n\nhackney_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.\n\nThis issue affects hackney: from 0.13.0 before 4.0.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00229,"percentile":0.13765,"provenance":"source"},"cwes":[{"id":"CWE-436","name":"Interpretation Conflict"},{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/benoitc/hackney/security/advisories/GHSA-pj7v-xfvx-wmjq","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-47076.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-47076","tags":["related"]},{"url":"https://github.com/benoitc/hackney/commit/4d725507588942fd00efca15b86da3273656510a","tags":["related"]},{"url":"https://github.com/benoitc/hackney/commit/452620a92ec1da2e6b4862a049a2a4f04b42068f","tags":["patch"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":2.75},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"benoitc","affectedVersions":[{"vendor":"benoitc","product":"hackney","versions":[">= 0.13.0, < 4.0.1"]},{"vendor":"benoitc","product":"hackney","versions":[">= 4d725507588942fd00efca15b86da3273656510a, < 452620a92ec1da2e6b4862a049a2a4f04b42068f"]}],"capec":[{"id":"CAPEC-664","name":"Server Side Request Forgery"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-26T15:46:49.956392Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"hackney","vulnerableRanges":[">=0.13.0, <4.0.1"],"patched":["4.0.1"],"from":["GHSA-pj7v-xfvx-wmjq"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-31689","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-benoitc-hackney-cve-2025-1211","parents":[{"from":"CVE-2025-1211","to":"CVE-2026-47076","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/hackney_url.erl"],"commits":["https://github.com/benoitc/hackney/commit/9594ce58fabd32cd897fc28fae937694515a3d4a","https://github.com/benoitc/hackney/commit/452620a92ec1da2e6b4862a049a2a4f04b42068f","https://github.com/benoitc/hackney/commit/4d725507588942fd00efca15b86da3273656510a"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2026-47076","to":"CVE-2026-115700","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"The IP-literal gate that hackney_url:normalize/2 applies to a percent-decoded host, added to close the percent-encoded IP bypass of CVE-2026-47076, passes the decoded value to inet_parse:address/1 as is.","from":"CVE.org","in":"CVE-2026-115700"},{"kind":"similar","provenance":"machine","score":0.4,"basis":"same product + CWE + description similarity"}]}]}}