{"id":"GHSA-2vcc-5v34-9jc8","revision":"b91d916c2cf6478c9322b8736409eb87","records":[{"revision":"b91d916c2cf6478c9322b8736409eb87","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-2vcc-5v34-9jc8","aliases":["CVE-2026-55661"],"title":"TinaCMS rich-text (slatejson) rendering does not sanitize link/image URLs, allowing stored XSS via dangerous URL schemes","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. 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.\n\nFixed 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.","state":0,"publishedAt":"2026-06-18T13:07:05+00:00","modifiedAt":"2026-09-10T03:50:55.3654992+00:00","affected":[{"ecosystem":"npm","name":"tinacms","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.9.3"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@tinacms/mdx","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.1.7"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/tinacms/tinacms/security/advisories/GHSA-2vcc-5v34-9jc8","https://github.com/tinacms/tinacms/pull/7056","https://github.com/tinacms/tinacms"],"sourceUrl":"https://github.com/advisories/GHSA-2vcc-5v34-9jc8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-2vcc-5v34-9jc8","identifiers":["GHSA-2vcc-5v34-9jc8","CVE-2026-55661"]},"retained":false,"historicalAffected":[]}],"coverage":[]}