CVE-2025-1211
JSON

6.3medium

Server-side Request Forgery (SSRF) in hackney

Severity
6.3medium CVSS:4.0 by snyk
Exploit likelihood
0.63% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-vq52-99r9-h5pw

Description

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://127.0.0.1?@127.2.2.2/, 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.

Affected

Product or packageVersionsReported by
hackneybefore 1.21.0CVE List
hackney (Hex)before 1.21.0GitHub Advisory Database

All scores

snyk6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:L/SA:L/E:P
snyk6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L/E:P
GitHub6.5low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:L/SA:L/E:P

Classification

CWE-918

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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://127.0.0.1?@127.2.2.2/, 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.

GitHub Advisory Database

Versions of the package hackney from 0.0.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://127.0.0.1?@127.2.2.2/, 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.

NVD (es)

Las versiones del paquete hackney a partir de la versión 0.0.0 son vulnerables a Server-side Request Forgery (SSRF) debido al análisis incorrecto de las URL por parte del módulo integrado URI y hackey. Dada la URL http://127.0.0.1?@127.2.2.2/, la función URI analizará y verá el host como 127.0.0.1 (lo cual es correcto), y hackney se referirá al host como 127.2.2.2/. Esta vulnerabilidad puede explotarse cuando los usuarios dependen de la función URL para la verificación del host.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-1211 changed 2025-03-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-vq52-99r9-h5pw changed 2025-12-10CC-BY-4.0
NVDCVE-2025-1211 changed 2026-06-17Public domain