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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 40% of CVEs (2026-11-30)
- Published: 2026-08-20T16:21:10.450Z
- Modified: 2026-10-18T20:10:00.110Z
- Also known as: GHSA-cpjf-6666-r8fx
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- OP-Engineering link-preview-js: < 4.0.4
- link-preview-js (npm): before 4.0.4

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/OP-Engineering/link-preview-js/security/advisories/GHSA-cpjf-6666-r8fx> (web)
- <https://github.com/OP-Engineering/link-preview-js/pull/181> (web)
- <https://github.com/OP-Engineering/link-preview-js/commit/6ee25043dd60b097eb70b4ce049aac94b28239e3> (web)
- <https://github.com/OP-Engineering/link-preview-js/commit/f3a3dd84adbb9d32d06a933f44ff3eaa837f9a12> (web)
- <https://github.com/OP-Engineering/link-preview-js/releases/tag/4.0.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61704> (advisory)
- <https://github.com/OP-Engineering/link-preview-js> (package)

## Sources

- CVE List: [CVE-2026-61704](https://www.cve.org/CVERecord?id=CVE-2026-61704), CVE Terms of Use, modified 2026-08-25
- GitHub Advisory Database: [GHSA-cpjf-6666-r8fx](https://github.com/advisories/GHSA-cpjf-6666-r8fx), CC-BY-4.0, modified 2026-09-02
- NVD: [CVE-2026-61704](https://nvd.nist.gov/vuln/detail/CVE-2026-61704), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2026-61704 · Whole record: https://cve.day/CVE-2026-61704.json · Rebuilt by cve.day 2026-11-25T22:59:34.667Z
