{"id":"CVE-2026-55661","aliases":["CVE-2026-55661","GHSA-2vcc-5v34-9jc8"],"related":[],"kind":"vulnerability","state":"published","title":"TinaCMS rich-text (slatejson) rendering does not sanitize link/image URLs, allowing stored XSS via dangerous URL schemes","summary":"Tina is a headless content management system. In versions prior to @tinacms/mdx 2.1.7 and  tinacms 3.9.3,  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. This issue is fixed in versions @tinacms/mdx 2.1.7 and  tinacms 3.9.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Tina is a headless content management system. In versions prior to @tinacms/mdx 2.1.7 and  tinacms 3.9.3,  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. This issue is fixed in versions @tinacms/mdx 2.1.7 and  tinacms 3.9.3.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2026-06-18T13:07:05.000Z","modified":"2026-09-10T03:50:55.365Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"}],"cwes":["CWE-79","CWE-87"],"affected":[{"ranges":[{"version":"< 3.9.3","status":"affected"}],"vendor":"tinacms","product":"tinacms","source":"cvelist"},{"ranges":[{"version":"< 2.1.7","status":"affected"}],"vendor":"tinacms","product":"@tinacms/mdx","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.9.3"}],"ecosystem":"npm","package":"tinacms","purl":"pkg:npm/tinacms","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.7"}],"ecosystem":"npm","package":"@tinacms/mdx","purl":"pkg:npm/%40tinacms/mdx","source":"ghsa"}],"references":[{"url":"https://github.com/tinacms/tinacms/security/advisories/GHSA-2vcc-5v34-9jc8","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tinacms/tinacms/pull/7056","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tinacms/tinacms","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-06T14:39:26.644Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55661","url":"https://www.cve.org/CVERecord?id=CVE-2026-55661","licence":"CVE Terms of Use","modified":"2026-07-06T14:39:33.214Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2vcc-5v34-9jc8","url":"https://github.com/advisories/GHSA-2vcc-5v34-9jc8","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:55.365Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55661","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55661","licence":"Public domain","modified":"2026-07-06T16:16:34.977Z"}],"updatedAt":"2026-11-25T22:59:26.961Z","epss":{"score":0.00239,"percentile":0.16082,"date":"2026-12-01T12:00:22.000Z"}}