Vulnerability library
Security checkSeptember 16, 2026

@nuxtjs/mdc's URL sanitizer misses SVG xlink:href and data:text/html, allowing XSS from untrusted markdown at the defaul

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

@nuxtjs/mdc renders untrusted markdown (including raw HTML) to a Vue component tree. Across two prior advisories it added a URL/attribute sanitizer to block dangerous links in that HTML: validateProps / validateProp and an unsafeLinkPrefix deny-list (dist/runtime/parser/utils/props.js).

Recommendation

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

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

References

Could your website be exposed too?

SmartScanner can check your website for @nuxtjs/mdc's URL sanitizer misses SVG xlink:href and data:text/html, allowing XSS from untrusted markdown at the defaul and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 16, 2026