← Terug naar overzicht

CVE-2026-61704 affects the Link Preview JS library (versions prior to 4.0.4), which is used to extract web link metadata. The vulnerability exists in the resolveDNSHost mitigation within index.ts, where the code validates one resolved IP address but subsequently fetches the original hostname. This mismatch creates a DNS rebinding condition that allows an attacker-controlled DNS server to return a public IP during validation and a loopback or internal IP during the actual fetch request. The flaw effectively bypasses the library's built-in SSRF (Server-Side Request Forgery) protection, potentially exposing internal HTTP resources. Redirect handling is also affected by the same validation-to-fetch mismatch. The issue has been patched in version 4.0.4, with fixes available via two separate commits on GitHub.

Affected products

  • Link Preview JS (link-preview-js) < 4.0.4

Related CVE's

  • CVE-2026-61704

Categories

  • Supply Chain & Dependencies
  • Web Technologies