CVE-2026-55661: TinaCMS rich-text (slatejson) rendering does not sanitize link/image URLs, allowing stored XSS via dangerous URL schemes
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.
Published Jun 18, 2026
Affected packages
tinacms
- Ecosystem
- npm
- Affected
- < 3.9.3
- Fixed in
- 3.9.3
- Check
npm ls tinacms
@tinacms/mdx
- Ecosystem
- npm
- Affected
- < 2.1.7
- Fixed in
- 2.1.7
- Check
npm ls @tinacms/mdx
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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. Any actor able to author rich-text content (for example a lower-privileged editor, or imported/external content) can achieve stored XSS against editors and site viewers.
Fixed in https://github.com/tinacms/tinacms/pull/7056 via a sanitizeUrl() helper (case-insensitive, whitespace/control-character-normalized scheme allow-list) applied recursively to Slate trees at parse time and in the default rich-text rendering.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-108261
TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment
critical9.3Oct 9, 2026CVE-2026-55660
TinaCMS: Cross-origin postMessage handlers and rich-text URL-sanitization bypass enable stored XSS and session takeover
high8.5Jun 19, 2026CVE-2026-28791
Tina: Path Traversal in Media Upload Handle
high7.4Mar 12, 2026CVE-2025-68278
tinacms is vulnerable to arbitrary code execution
high7.3Dec 18, 2025
