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.
Published: 2026-08-20
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in link‑preview‑js permits a DNS rebinding attack that bypasses the library’s SSRF protection. During host validation the code checks one resolved IP address but later performs a fetch against the original hostname. An attacker can provide a DNS record that resolves to a public IP for validation and then to a loopback or internal address for the subsequent request, causing the server to reach internal HTTP resources. This flaw can lead to unauthorized access to internal services and potential lateral movement.

Affected Systems

The issue affects all versions of the OP‑Engineering link‑preview‑js package prior to 4.0.4. Any deployment of these earlier releases is vulnerable. Upgrading to 4.0.4 or later resolves the validation‑to‑fetch mismatch.

Risk and Exploitability

The CVSS score of 7.5 indicates high severity. EPSS data are currently unavailable, so the exact likelihood of exploitation cannot be quantified, but the vulnerability is not listed in the CISA KEV catalog. Attackers would need to control a DNS server for a hostname that the application resolves, then use DNS rebinding to redirect the internal request to an internal address. If successful, the attacker can extract or influence data on internal networks via SSRF.

Generated by OpenCVE AI on August 20, 2026 at 20:15 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade link‑preview‑js to version 4.0.4 or later.
  • Confirm that the resolveDNSHost routine validates the final fetch hostname against the resolved IP; no mismatch should exist.
  • If possible, restrict outgoing connections from the preview service to external IP ranges only, blocking private and loopback addresses.

Generated by OpenCVE AI on August 20, 2026 at 20:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 18:15:00 +0000

Type Values Removed Values Added
First Time appeared Op-engineering
Op-engineering link-preview-js
Vendors & Products Op-engineering
Op-engineering link-preview-js

Thu, 20 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
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.
Title link-preview-js DNS Rebinding SSRF Bypass / Incomplete Fix for CVE-2026-43897
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Op-engineering Link-preview-js
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-20T16:21:10.450Z

Reserved: 2026-07-10T18:51:13.919Z

Link: CVE-2026-61704

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T17:18:51.940

Modified: 2026-08-20T17:18:51.940

Link: CVE-2026-61704

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T20:30:05Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)