Server-side Request Forgery (SSRF) Affecting link-preview-js package, versions <4.0.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-LINKPREVIEWJS-16424508
  • published6 May 2026
  • disclosed5 May 2026
  • creditAndrew-most-likely

Introduced: 5 May 2026

NewCVE-2026-43897  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade link-preview-js to version 4.0.1 or higher.

Overview

link-preview-js is a Javascript module to extract and fetch HTTP link information from blocks of text.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via improper validation of IPv6 and internal addresses during the DNS resolution process. An attacker can access internal network resources or leak sensitive internal data by supplying specially crafted addresses that resolve to internal IPs or loopback interfaces.

Workaround

This vulnerability can be mitigated by performing custom validation of addresses before fetching content.

CVSS Base Scores

version 4.0
version 3.1