{"answers":{"affected":"2 open source packages ship an affected version, including hackney.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1211 exists.","fix":"Upgrade hackney to 1.21.0 or later.","what":"CVE-2025-1211 is a medium-severity server-side request forgery vulnerability in hackney, published on 11 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-1211 and fix it if it is affected.\n\nWhat it is: CVE-2025-1211 is a medium-severity server-side request forgery vulnerability in hackney, published on 11 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1211 exists.\n\nAffected packages and fixed versions:\n- hackney (Hex): affected all versions; fixed in 1.21.0\n- hackney (Hex): affected all versions; fixed in 1.21.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-1211/ (Markdown: https://insights.sbomify.com/CVE-2025-1211/index.md)","id":"CVE-2025-1211","markdown":"https://insights.sbomify.com/CVE-2025-1211/index.md","name":"CVE-2025-1211","record":{"aliases":["GHSA-vq52-99r9-h5pw"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Erlang HTTP client","requires_auth":"none","summary":"Hackney library allows SSRF via URL parsing discrepancies, enabling attackers to bypass host checks and access internal resources.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"cna","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/E:P","version":"4.0"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"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/. \rThis vulnerability can be exploited when users rely on the URL function for host checking.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Server-side Request Forgery (SSRF) in hackney","id":"CVE-2025-1211","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"ssrf","year":"2025"},"n_packages":2,"n_references":4,"next":{"headline":"Exposure of Sensitive System Information to an Unauthorized Control Sphere in GitLab","id":"CVE-2025-1212"},"packages":[{"ecosystem":"Hex","fixed":["1.21.0"],"introduced":["0"],"last_affected":[],"package":"hackney","purl":null,"source":"GHSA-vq52-99r9-h5pw"},{"ecosystem":"Hex","fixed":["1.21.0"],"introduced":["0"],"last_affected":[],"package":"hackney","purl":"pkg:hex/hackney","source":"GHSA-vq52-99r9-h5pw"}],"prev":{"headline":"code-projects Wazifa System control.php sql injection","id":"CVE-2025-1210"},"products":["hackney"],"published":"2025-02-11","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-16","vendors":["n/a"]},"summary":"Hackney library allows SSRF via URL parsing discrepancies, enabling attackers to bypass host checks and access internal resources.","url":"https://insights.sbomify.com/CVE-2025-1211/"}