Vulnerability library
Security checkJanuary 27, 2023

Server-Side Request Forgery in link-preview-js

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmlink-preview-js

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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.

Recommendation

Update the link-preview-js package to the latest compatible version. Followings are version details:

  • Affected version(s): < 2.1.17
  • Patched version(s): 2.1.17

References

Could your website be exposed too?

SmartScanner can check your website for Server-Side Request Forgery in link-preview-js and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 27, 2023