Link Preview JS IPv6 Loopback and DNS Resolution Vulnerability Allowing Internal Data Leaks

Vulnerability

A vulnerability in Link Preview JS prior to version 4.0.1 allowed for IPv6 loopback attacks and internal data leaks via DNS resolution of addresses into internal IPs. The library did not properly validate IPv6 loopback addresses, which could be exploited to access internal data. Additionally, the lack of proper DNS resolution could lead to similar leaks by resolving external addresses into internal ones.

Impact

Exploitation of this vulnerability could result in unauthorized access to internal data through loopback attacks or improper DNS resolution.

Reproduction

The vulnerability can be reproduced by using Link Preview JS version 4.0.0 or earlier without the 'resolveDNSHost' option enabled. This allows DNS addresses to be resolved into internal IPs, potentially leaking internal data. The vulnerability also involves IPv6 loopback addresses, which can be tested by resolving such an address through the library's link preview functions.

Remediation

Users should update to Link Preview JS version 4.0.1 or later and ensure that the 'resolveDNSHost' option is enabled to properly validate and resolve DNS addresses before fetching content. The latest version can be downloaded from the GitHub Releases page.

Added: May 11, 2026, 10:31 PM
Updated: May 11, 2026, 10:31 PM

Vulnerability Rating

Custom Algorithm
spread
2.4
impact
0.6
exploitability
5.1
remediation
8.3
relevance
8.0
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.