Advisory

GHSA-2vcc-5v34-9jc8

Also known as: CVE-2026-55661

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-06-18 13:07 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

tinacms

npm · All systems

Affected

  • introduced 0, fixed 3.9.3 (semver)

Fixed versions

3.9.3

Fix

@tinacms/mdx

npm · All systems

Affected

  • introduced 0, fixed 2.1.7 (semver)

Fixed versions

2.1.7

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences