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
EPSS Exploitation Probability
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
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.
link-preview-jsnpmDescription
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
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | link-preview-js | all versions | 2.1.17npm install link-preview-js@2.1.17 |
Affected Products
link-preview-jslink-preview-js_projectResearch 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 dependencyDetect
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.
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.
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
Is CVE-2022-25876 in your dependencies?
Find it across npm, including transitive dependencies.