NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
📦
📦 npm
Not in CISA KEV
MEDIUM severity

CVE-2022-25876 — link-preview-js

MEDIUMFix: ospfranco/link-preview-js#117

CVE-2022-25876 is a medium-severity (CVSS 5.5) Server-Side Request Forgery (SSRF) vulnerability in link-preview-js. 2 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for link-preview-js — see the affected versions and patch details below.

Server-Side Request Forgery in link-preview-js

Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
2 known
Exploitation data as of Nov 2, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
0.4%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs31th percentile — riskier than 31% of all scored CVEsHighest risk
0.00%0.29%0.58%0.87%0.1%0.4%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

175other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
link-preview-jsnpm
162Kdownloads / week

Description

The package link-preview-js before 2.1.17 are vulnerable to Server-side Request Forgery (SSRF) which allows attackers to send arbitrary requests to the local network and read the response. This is due to flawed DNS rebinding protection.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
📦npmlink-preview-jsall versions2.1.17npm install link-preview-js@2.1.17

Affected Products

1 product · 1 configurations
Application
link-preview-jslink-preview-js_project
< 2.1.16
range
Exploits & PoCs
2

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for link-preview-js, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update link-preview-js to 2.1.17 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-25876 is resolved across your whole dependency graph.

  3. Workarounds

    Restrict outbound requests from the affected component to an allowlist of hosts, block access to link-local and internal address ranges at the network layer, and require authentication on internal services so a forged request cannot reach them unauthenticated.

Frequently Asked Questions

The package link-preview-js before 2.1.17 are vulnerable to Server-side Request Forgery (SSRF) which allows attackers to send arbitrary requests to the local network and read the response. This is due to flawed DNS rebinding protection.
O3 Security · Impact-Aware SCA

Is CVE-2022-25876 in your dependencies?

Find it across npm, including transitive dependencies.

CVE-2022-25876: link-preview-js SSRF — Fixed in 2.1.17