Vulnerability library
Security checkJune 18, 2026

TinaCMS rich-text (slatejson) rendering does not sanitize link/image URLs, allowing stored XSS via dangerous URL schemes

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

Medium severitynpmtinacms

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

TinaCMS rich-text parsing and the default link/image renderers did not sanitize the url field on Slate link/image nodes. Content containing javascript: or data:text/html URLs — including case-variant, whitespace-padded, and control-character-obfuscated forms — is rendered into href/src and executes when the content is viewed.

Recommendation

Update the tinacms package to the latest compatible version. Followings are version details:

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

References

Could your website be exposed too?

SmartScanner can check your website for TinaCMS rich-text (slatejson) rendering does not sanitize link/image URLs, allowing stored XSS via dangerous URL schemes and gives you actionable findings to investigate.

Start a free scan

Related Issues

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