VDB
Sign up
MEDIUM6.5

GHSA-vq52-99r9-h5pw

Server-side Request Forgery (SSRF) in hackney

Quick fix

GHSA-vq52-99r9-h5pw — hackney: upgrade to the fixed version with the command below.

mix deps.update 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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Hex/hackney
Introduced in: 0Fixed in: 1.21.0
Fixmix deps.update hackney

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:hex/hackney"]}'