link-preview-js DNS Rebinding SSRF Bypass / Incomplete Fix for CVE-2026-43897
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| OP-Engineering | link-preview-js | before 4.0.4 | 4.0.4 | Patch available | CNA |
| — | link-preview-js (npm) | before 4.0.4 | 4.0.4 | Patch available | GHSA-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
- 2026-10-02 Threatist record created from CVE-2026-61704
- 2026-10-03 Alias added: GHSA-cpjf-6666-r8fx
References
Other 6
- https://github.com/OP-Engineering/link-preview-js/security/advisories/GHSA-cpjf-6666-r8fx
- https://github.com/OP-Engineering/link-preview-js/pull/181
- https://github.com/OP-Engineering/link-preview-js/commit/6ee25043dd60b097eb70b4ce049aac94b28239e3
- https://github.com/OP-Engineering/link-preview-js/commit/f3a3dd84adbb9d32d06a933f44ff3eaa837f9a12
- https://github.com/OP-Engineering/link-preview-js/releases/tag/4.0.4
- https://github.com/OP-Engineering/link-preview-js
More OP-Engineering vulnerabilities
- TI-2026-31961 Link Preview JS: vunerable to IPv6 and internal loopback attacks CVSS 4.0HIGH 8.7
Sources
- CVE-2026-61704 · CVE Program
- CVE-2026-61704 · NVD
- FIRST EPSS
- GHSA-cpjf-6666-r8fx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences