Vulnerability library
Security checkMay 13, 2026

link-preview-js vulnerable to IPv6 and internal loopback attacks

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

High 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 library did not check for IPv6 loopback attacks. There was also a DNS attack, where an address could be resolved into an internal IP. This could cause internal data leaks.

Recommendation

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

  • Affected version(s): <= 4.0.0
  • Patched version(s): 4.0.1

References

Could your website be exposed too?

SmartScanner can check your website for link-preview-js vulnerable to IPv6 and internal loopback attacks and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 13, 2026