is-localhost-ip@3.0.0 vulnerabilities

Checks whether given DNS name or IPv4/IPv6 address belongs to a local machine

Direct Vulnerabilities

Known vulnerabilities in the is-localhost-ip package. This does not include vulnerabilities belonging to this package’s dependencies.

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

Fix for free
VulnerabilityVulnerable Version
  • M
Server-side Request Forgery (SSRF)

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.

How to fix Server-side Request Forgery (SSRF)?

There is no fixed version for is-localhost-ip.

*