Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. link-preview-js
  4. ›
  5. CVE-2022-25876

CVE-2022-25876: Server-Side Request Forgery (SSRF)

July 1, 2022 (updated July 12, 2022)

The package link-preview-js before 2.1.16 is 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.

References

  • github.com/ospfranco/link-preview-js/issues/115
  • github.com/ospfranco/link-preview-js/pull/117
  • nvd.nist.gov/vuln/detail/CVE-2022-25876
  • snyk.io/vuln/SNYK-JS-LINKPREVIEWJS-2933520

Code Behaviors & Features

Detect and mitigate CVE-2022-25876 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.16

Fixed versions

  • 2.1.16

Solution

Upgrade to version 2.1.16 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

npm/link-preview-js/CVE-2022-25876.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:02 +0000.