Vulnerability GHSA-2vcc-5v34-9jc8

Medium Risk
MEDIUM RISK
CVSS Score: 6.0
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
3 months ago
June 18, 2026 at 01:07 PM UTC
TinaCMS rich-text (slatejson) rendering does not sanitize link/image URLs, allowing stored XSS via dangerous URL schemes
0.0.0-202231073 - 3.9.2
0.0.0-202231073 - 3.9.2

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.

Impacted packages

Timeline

Published
3 months ago
June 18, 2026 at 01:07 PM UTC
Fixed (2.1.7)
3 months ago
June 15, 2026 at 11:33 PM UTC
Fixed (3.9.3)
3 months ago
June 15, 2026 at 11:34 PM UTC
Last Modified
29 days ago
September 10, 2026 at 03:50 AM UTC