Vulnerability

CVE-2026-61704

highCVSS 3.1 7.5Published 20 Aug 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /OP-Engineering/link-preview-js/commit/6ee25043dd60b097eb70…
  • github.com /OP-Engineering/link-preview-js/commit/f3a3dd84adbb9d32d06a…
  • github.com /OP-Engineering/link-preview-js/pull/181
  • github.com /OP-Engineering/link-preview-js/releases/tag/4.0.4
  • github.com /OP-Engineering/link-preview-js/security/advisories/GHSA-cp…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning