Vulnerability library
Security checkFebruary 06, 2025

Parsed HTML anchor links in Markdown provided to parseMarkdown can result in XSS in @nuxtjs/mdc

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

High severitynpm@nuxtjs/mdc

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

An unsafe parsing logic of the URL from markdown can lead to arbitrary JavaScript code due to a bypass to the existing guards around the javascript: protocol scheme in the URL.

Recommendation

Update the @nuxtjs/mdc package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 0.13.2
  • Patched version(s): 0.13.3

References

Could your website be exposed too?

SmartScanner can check your website for Parsed HTML anchor links in Markdown provided to parseMarkdown can result in XSS in @nuxtjs/mdc and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 06, 2025