# CVE-2025-1211: Server-side Request Forgery (SSRF) in hackney

- Severity: Medium 6.3 (CVSS:4.0, scored by snyk) `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/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-02-11T05:00:00.994Z
- Modified: 2026-06-17T08:38:36.677Z
- Also known as: GHSA-vq52-99r9-h5pw
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- hackney: before 1.21.0
- hackney (Hex): before 1.21.0

## Every score

- snyk: CVSS:4.0 6.3 Medium `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/E:P`
- snyk: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L/E:P`
- GitHub: CVSS:3.1 6.5 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Low `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/E:P`

## References

- <https://gist.github.com/snoopysecurity/996de09ec0cfd0ebdcfdda8ff515deb1> (exploit, web)
- <https://security.snyk.io/vuln/SNYK-HEX-HACKNEY-6516131> (web)
- <https://www.blackhat.com/docs/us-17/thursday/us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-Languages.pdf> (web)
- <https://github.com/benoitc/hackney/commit/9594ce58fabd32cd897fc28fae937694515a3d4a> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1211> (advisory)
- <https://github.com/benoitc/hackney> (package)
- <https://github.com/benoitc/hackney/releases/tag/1.21.0> (web)

## Sources

- CVE List: [CVE-2025-1211](https://www.cve.org/CVERecord?id=CVE-2025-1211), CVE Terms of Use, modified 2025-03-16
- GitHub Advisory Database: [GHSA-vq52-99r9-h5pw](https://github.com/advisories/GHSA-vq52-99r9-h5pw), CC-BY-4.0, modified 2025-12-10
- NVD: [CVE-2025-1211](https://nvd.nist.gov/vuln/detail/CVE-2025-1211), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-1211 · Whole record: https://cve.day/CVE-2025-1211.json · Rebuilt by cve.day 2026-11-25T22:58:53.946Z
