Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-2vcc-5v34-9jc8

Опубликовано: 18 июн. 2026
Источник: github
Github: Прошло ревью
CVSS4: 4.8

Описание

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. 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.

Пакеты

Наименование

tinacms

npm
Затронутые версииВерсия исправления

< 3.9.3

3.9.3

Наименование

@tinacms/mdx

npm
Затронутые версииВерсия исправления

< 2.1.7

2.1.7

EPSS

Процентиль: 34%
0.00405
Низкий

4.8 Medium

CVSS4

Дефекты

CWE-79
CWE-87

Связанные уязвимости

nvd
3 месяца назад

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.

EPSS

Процентиль: 34%
0.00405
Низкий

4.8 Medium

CVSS4

Дефекты

CWE-79
CWE-87