Read the docs
TI-2026-44172 Aliases CVE-2026-61704GHSA-cpjf-6666-r8fx

link-preview-js DNS Rebinding SSRF Bypass / Incomplete Fix for CVE-2026-43897

Priority MEDIUM 40CWE-918Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-918 and the CVSS impact.

Summary

Link Preview JS extracts web links information. Prior to 4.0.4, the resolveDNSHost mitigation in index.ts validates one resolved IP address but fetches the original hostname, allowing an attacker-controlled DNS server to return a public address during validation and a loopback or internal address during the final connection. This DNS rebinding condition bypasses the SSRF protection and can cause the server-side preview fetch to reach internal HTTP resources. Redirect handling is affected by the same validation-to-fetch mismatch. This issue is fixed in version 4.0.4.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0055 46th percentileScored 2026-11-07
Fix Fixed link-preview-js (OP-Engineering): 4.0.4link-preview-js (npm): 4.0.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
OP-Engineeringlink-preview-jsbefore 4.0.44.0.4Patch availableCNA
—link-preview-js (npm)before 4.0.44.0.4Patch availableGHSA-cpjf-6666-r8fx
  • link-preview-js VendorOP-Engineering Affected before 4.0.4 Fixed in 4.0.4 Patch available CNA
  • link-preview-js (npm) Vendor— Affected before 4.0.4 Fixed in 4.0.4 Patch available GHSA-cpjf-6666-r8fx

Remediation

  • Fix · CNA link-preview-js (OP-Engineering) Fixed in 4.0.4
  • Fix · GHSA-cpjf-6666-r8fx link-preview-js (npm) Fixed in 4.0.4 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-61704
  2. 2026-10-03 Alias added: GHSA-cpjf-6666-r8fx

References

  • TI-2026-31961 Link Preview JS: vunerable to IPv6 and internal loopback attacks CVSS 4.0HIGH 8.7

Sources