Vulnerability library
Security checkJune 19, 2026

Sveltia CMS: Stored XSS in Markdown/RichText preview via unsandboxed same-origin iframe

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

Low severitynpm@sveltia/cms

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

A stored cross-site scripting (XSS) vulnerability affected the Markdown/RichText field preview renderer in Sveltia CMS.

The DOMPurify sanitization configuration used for Markdown previews explicitly permitted iframe elements without enforcing a sandbox attribute or restricting iframe sources.

Recommendation

Update the @sveltia/cms package to the latest compatible version. Followings are version details:

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

References

Could your website be exposed too?

SmartScanner can check your website for Sveltia CMS: Stored XSS in Markdown/RichText preview via unsandboxed same-origin iframe and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated June 19, 2026