Versions of the package hackney before 1.21.0 are vulnerable to Server-side Request Forgery (SSRF) due to improper parsing of URLs by URI built-in module and hackey. Given the URL http://[email protected]/, the URI function will parse and see the host as 127.0.0.1 (which is correct), and hackney will refer the host as 127.2.2.2/. This vulnerability can be exploited when users rely on the URL function for host checking.
https://security.snyk.io/vuln/SNYK-HEX-HACKNEY-6516131
https://github.com/benoitc/hackney/commit/9594ce58fabd32cd897fc28fae937694515a3d4a
https://gist.github.com/snoopysecurity/996de09ec0cfd0ebdcfdda8ff515deb1
Published: 2025-02-11
Updated: 2026-04-29
Base Score: 5.1
Vector: CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:P
Severity: Medium
Base Score: 6.5
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L
Severity: Medium
Base Score: 6.3
Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:L/SA:L
Severity: Medium
EPSS: 0.00076