CVE-2025-1211: Hackney Server-side Request Forgery (SSRF) Vulnerability
LOWCVE-2025-1211 is a LOW (CVSS 6.5) server-side request forgery (ssrf) vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Hackney libraries in the Hex ecosystem. The issue involves server-side request forgery (ssrf) in hackney. Remediation is available by upgrading affected packages to version 1.21.0.
CVE-2025-1211 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L).
How to Fix CVE-2025-1211
To remediate this vulnerability, upgrade all affected Hackney dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade hackney to 1.21.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for hackney
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-1211, inspect your project dependencies for Hackney:
inspect dependencies for hackney
Analyze the terminal output to locate any version of Hackney in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.21.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Hackney, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-1211 Affected Hackney Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
hackney
|
Hex |
< 1.21.0
|
1.21.0
|
References
Frequently Asked Questions
What is CVE-2025-1211?
Which Hackney versions are affected?
What version fixes CVE-2025-1211?
Is hackney affected?
What is the CVSS score of CVE-2025-1211?
What CWE is associated with CVE-2025-1211?
How can I check Hex dependencies for CVE-2025-1211?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vq52-99r9-h5pw",
"modified" : "2025-02-20T16:41:45Z",
"published" : "2025-02-11T06:30:27Z",
"aliases" : [ "CVE-2025-1211" ],
"summary" : "Server-side Request Forgery (SSRF) in hackney",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Hex",
"name" : "hackney"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.21.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-1211"
}, {
"type" : "WEB",
"url" : "https://github.com/benoitc/hackney/commit/9594ce58fabd32cd897fc28fae937694515a3d4a"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/snoopysecurity/996de09ec0cfd0ebdcfdda8ff515deb1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/benoitc/hackney"
}, {
"type" : "WEB",
"url" : "https://github.com/benoitc/hackney/releases/tag/1.21.0"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-HEX-HACKNEY-6516131"
}, {
"type" : "WEB",
"url" : "https://www.blackhat.com/docs/us-17/thursday/us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-Languages.pdf"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-02-11T17:59:52Z",
"nvd_published_at" : "2025-02-11T05:15:14Z"
}
}