{"id":"CVE-2026-61704","published":"2026-08-20T16:21:10Z","modified":"2026-08-25T15:03:17Z","title":"link-preview-js DNS Rebinding SSRF Bypass / Incomplete Fix for CVE-2026-43897","vendor":"OP-Engineering","product":"link-preview-js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0055,"percentile":0.39664,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/OP-Engineering/link-preview-js/security/advisories/GHSA-cpjf-6666-r8fx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OP-Engineering/link-preview-js/pull/181","tags":["x_refsource_MISC"]},{"url":"https://github.com/OP-Engineering/link-preview-js/commit/6ee25043dd60b097eb70b4ce049aac94b28239e3","tags":["x_refsource_MISC"]},{"url":"https://github.com/OP-Engineering/link-preview-js/commit/f3a3dd84adbb9d32d06a933f44ff3eaa837f9a12","tags":["x_refsource_MISC"]},{"url":"https://github.com/OP-Engineering/link-preview-js/releases/tag/4.0.4","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":7.93},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"op-engineering","affectedVersions":[{"vendor":"OP-Engineering","product":"link-preview-js","versions":["< 4.0.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-25T15:03:06.178339Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"link-preview-js","vulnerableRanges":["<4.0.4"],"patched":["4.0.4"],"from":["GHSA-cpjf-6666-r8fx"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-63439","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-op-engineering-link-preview-js-cve-2026-43897","parents":[{"from":"CVE-2026-43897","to":"CVE-2026-61704","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:link-preview-js","fromFixed":"4.0.1","toFixed":"4.0.4","daysApart":101},{"kind":"same-code","provenance":"machine","files":["index.ts"],"commits":["https://github.com/OP-Engineering/link-preview-js/commit/4396d48909fab37553c0e93e26447fe218363ede","https://github.com/OP-Engineering/link-preview-js/commit/6ee25043dd60b097eb70b4ce049aac94b28239e3","https://github.com/OP-Engineering/link-preview-js/commit/f3a3dd84adbb9d32d06a933f44ff3eaa837f9a12"],"basis":"shared function","functions":["getLinkPreview"]},{"kind":"similar","provenance":"machine","score":0.46,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2022-25876","published":"2022-07-01","fixed":"2.1.17","kev":false},{"cve":"CVE-2026-43897","published":"2026-05-11","fixed":"4.0.1","kev":false},{"cve":"CVE-2026-61704","published":"2026-08-20","fixed":"4.0.4","kev":false}],"package":"npm:link-preview-js"}}