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

Published Aug 20, 2026
·
Updated

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 Software

1 affected component
Link Preview JS<4.0.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Link Preview JS to a version that resolves this vulnerability.

    Fixed in 4.0.4

Event History

Aug 20, 2026
CVE Published
via MITRE·04:21 PM
Data Sourced
via MITRE·04:21 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using Link Preview JS before version 4.0.4 are affected when they perform server-side preview fetching of attacker-supplied links. The resulting fetch can reach loopback or internal HTTP resources.

2

What does an attacker need to exploit this issue?

An attacker needs to provide a hostname controlled by a DNS server that can return a public IP address during validation and a loopback or internal IP address when the preview fetch connects. Redirects can also be used because redirect handling has the same validation-to-fetch mismatch.

3

How can I determine whether my application is affected?

Check the deployed Link Preview JS version. Versions prior to 4.0.4 contain the affected resolveDNSHost behavior; version 4.0.4 fixes the issue.

4

What should be done if the library cannot be upgraded immediately?

The provided information identifies version 4.0.4 as the fix. No temporary mitigation is specified.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203