Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.
Start learningThere is no fixed version for is-localhost-ip
.
is-localhost-ip is a Checks whether given DNS name or IPv4/IPv6 address belongs to a local machine
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the isLocalhost()
function which misclassifies IP addresses and allows localhost checks to be bypassed. An attacker can access internal network resources by using alternative representations such as IPv6-mapped IPv4 addresses (e.g.,::ffff:127.0.0.1
), allowing restricted localhost access to be incorrectly permitted.