Skip to main content
← All vulnerabilities
CVE-2026-61704GHSA-CPJF-6666-R8FX

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.0.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • OP-Engineering link-preview-js

    fixed in 4.0.4

  • link-preview-jsnpm

    fixed in 4.0.4

References 5

GitHub · OP-Engineering/link-preview-js