Vulnerability library
Security checkNovember 10, 2023

@udecode/plate-link does not sanitize URLs to prevent use of the `javascript:` scheme

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

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Affected versions of the link plugin and link UI component do not sanitize URLs to prevent use of the javascript: scheme. As a result, links with JavaScript URLs can be inserted into the Plate editor through various means, including opening or pasting malicious content.

Recommendation

Update the @udecode/plate-link package to the latest compatible version. Followings are version details:

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

References

Could your website be exposed too?

SmartScanner can check your website for @udecode/plate-link does not sanitize URLs to prevent use of the `javascript:` scheme and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 10, 2023