CVE-2026-61704: CWE-918: Server-Side Request Forgery (SSRF) in OP-Engineering link-preview-js
Description
CVE-2026-61704 is a Server-Side Request Forgery (SSRF) vulnerability in the OP-Engineering link-preview-js library prior to version 4.0.4. The issue arises from a DNS rebinding attack where the mitigation logic validates a resolved IP address but fetches the original hostname, allowing an attacker-controlled DNS server to bypass SSRF protections. This can lead to unauthorized server-side requests to internal HTTP resources. The vulnerability also affects redirect handling due to the same validation-to-fetch mismatch. The issue is fixed in version 4.0.4.
CVSS v3.1
Score 7.5high
Affected software
OP-Engineering
link-preview-js
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The link-preview-js library extracts information from web links. Before version 4.0.4, its resolveDNSHost mitigation validated only one resolved IP address but performed the fetch using the original hostname. This discrepancy allows an attacker controlling a DNS server to return a public IP during validation and a loopback or internal IP during the actual fetch, effectively bypassing SSRF protections. Redirect handling is similarly vulnerable due to this mismatch. The vulnerability is addressed in version 4.0.4.
Potential Impact
An attacker can exploit this SSRF vulnerability to make the server perform unauthorized HTTP requests to internal or loopback network resources, potentially exposing sensitive internal services or data. The CVSS score of 7.5 reflects a high severity with network attack vector, low complexity, no privileges required, and no user interaction needed. Confidentiality impact is high, but integrity and availability impacts are not affected.
Mitigation Recommendations
Upgrade to link-preview-js version 4.0.4 or later, where this SSRF vulnerability is fixed. No other mitigation is required as the official fix addresses the issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-10T18:51:13.919Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a872d78acd9273b49dd4189
Added to database: 08/20/2026, 16:38:16 UTC
Last enriched: 09/10/2026, 23:32:17 UTC
Last updated: 10/05/2026, 06:48:17 UTC
Views: 87
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.