{"id":"CVE-2026-61704","aliases":["CVE-2026-61704","GHSA-cpjf-6666-r8fx"],"related":[],"kind":"vulnerability","state":"published","title":"link-preview-js DNS Rebinding SSRF Bypass / Incomplete Fix for CVE-2026-43897","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"The existing advisory GHSA-4gp8-rjrq-ch6q / CVE-2026-43897 states that the SSRF issue was fixed in 4.0.1. However, 4.0.3 remains bypassable when the documented resolveDNSHost mitigation is used.\n\nRoot cause:\nThe library validates one resolved IP address through resolveDNSHost, but later performs fetch() against the original hostname without pinning the connection to the validated IP. An attacker-controlled DNS server can return a public IP during validation and a loopback/internal IP during the final connection.\n\nImpact:\nThis allows an attacker to bypass the documented SSRF mitigation and make the server-side fetch reach loopback or internal addresses under DNS rebinding conditions.\n\nThis appears to be either an incomplete fix for CVE-2026-43897 or a new DNS rebinding SSRF bypass affecting the latest version.\n\nThe PoC was reproduced in a local-only controlled environment to avoid targeting production or third-party systems. Evidence and reproduction details can be provided privately.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Link Preview JS extrae información de enlaces web. Antes de la versión 4.0.4, la mitigación resolveDNSHost en index.ts valida una dirección IP resuelta pero obtiene el nombre de host original, permitiendo que un servidor DNS controlado por un atacante devuelva una dirección pública durante la validación y una dirección de bucle invertido o interna durante la conexión final. Esta condición de revinculación de DNS elude la protección SSRF y puede hacer que la obtención de la vista previa del lado del servidor alcance recursos HTTP internos. El manejo de redirecciones se ve afectado por la misma falta de coincidencia entre validación y obtención. Este problema está solucionado en la versión 4.0.4.","source":"nvd"}],"published":"2026-08-20T16:21:10.450Z","modified":"2026-10-18T20:10:00.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 4.0.4","status":"affected"}],"vendor":"OP-Engineering","product":"link-preview-js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.0.4"}],"ecosystem":"npm","package":"link-preview-js","purl":"pkg:npm/link-preview-js","source":"ghsa"}],"references":[{"url":"https://github.com/OP-Engineering/link-preview-js/security/advisories/GHSA-cpjf-6666-r8fx","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OP-Engineering/link-preview-js/pull/181","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OP-Engineering/link-preview-js/commit/6ee25043dd60b097eb70b4ce049aac94b28239e3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OP-Engineering/link-preview-js/commit/f3a3dd84adbb9d32d06a933f44ff3eaa837f9a12","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OP-Engineering/link-preview-js/releases/tag/4.0.4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61704","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/OP-Engineering/link-preview-js","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-25T15:03:06.178Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61704","url":"https://www.cve.org/CVERecord?id=CVE-2026-61704","licence":"CVE Terms of Use","modified":"2026-08-25T15:03:17.040Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cpjf-6666-r8fx","url":"https://github.com/advisories/GHSA-cpjf-6666-r8fx","licence":"CC-BY-4.0","modified":"2026-09-02T21:45:09.841Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61704","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61704","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:34.667Z","epss":{"score":0.0055,"percentile":0.39704,"date":"2026-11-30T12:00:22.000Z"}}