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

exploitDog

github логотип

GHSA-v626-r774-j7f8

Опубликовано: 15 нояб. 2023
Источник: github
Github: Прошло ревью
CVSS3: 6.1

Описание

TinyMCE vulnerable to mutation Cross-site Scripting via special characters in unescaped text nodes

Impact

A mutation cross-site scripting (mXSS) vulnerability was discovered in TinyMCE’s core undo/redo functionality and other APIs and plugins. Text nodes within specific parents are not escaped upon serialization according to the HTML standard. If such text nodes contain a special character reserved as an internal marker, they can be combined with other HTML patterns to form malicious snippets. These snippets pass the initial sanitisation layer when the content is parsed into the editor body, but can trigger XSS when the special internal marker is removed from the content and re-parsed. Such mutations occur when serialised HTML content is processed before being stored in the undo stack, or when the following APIs and plugins are used:

Patches

This vulnerability has been patched in TinyMCE 6.7.3 by:

  • ensuring that any unescaped text nodes which contain the special internal marker are emptied before removing the marker from the rest of the HTML, and
  • removing the special internal marker from content strings passed to Editor.setContent, Editor.insertContent, and Editor.resetContent APIs to prevent them from being loaded into the editor as user-provided content.

Fix

To avoid this vulnerability:

  • Upgrade to TinyMCE 6.7.3 or higher for TinyMCE 6.x.
  • Upgrade to TinyMCE 5.10.9 or higher for TinyMCE 5.x.

Acknowledgements

Tiny Technologies would like to thank Masato Kinugawa of Cure53 for discovering this vulnerability.

References

For more information

Email us at infosec@tiny.cloud Open an issue in the TinyMCE repo

Пакеты

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

tinymce

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

< 5.10.9

5.10.9

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

tinymce

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

>= 6.0.0, < 6.7.3

6.7.3

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

tinymce/tinymce

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

< 5.10.9

5.10.9

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

tinymce/tinymce

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

>= 6.0.0, < 6.7.3

6.7.3

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

TinyMCE

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

< 5.10.9

5.10.9

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

TinyMCE

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

>= 6.0.0, < 6.7.3

6.7.3

EPSS

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

6.1 Medium

CVSS3

Дефекты

CWE-79

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

CVSS3: 6.1
ubuntu
около 2 лет назад

TinyMCE is an open source rich text editor. A mutation cross-site scripting (mXSS) vulnerability was discovered in TinyMCE’s core undo/redo functionality and other APIs and plugins. Text nodes within specific parents are not escaped upon serialization according to the HTML standard. If such text nodes contain a special character reserved as an internal marker, they can be combined with other HTML patterns to form malicious snippets. These snippets pass the initial sanitisation layer when the content is parsed into the editor body, but can trigger XSS when the special internal marker is removed from the content and re-parsed. his vulnerability has been patched in TinyMCE versions 6.7.3 and 5.10.9. Users are advised to upgrade. There are no known workarounds for this vulnerability.

CVSS3: 6.1
nvd
около 2 лет назад

TinyMCE is an open source rich text editor. A mutation cross-site scripting (mXSS) vulnerability was discovered in TinyMCE’s core undo/redo functionality and other APIs and plugins. Text nodes within specific parents are not escaped upon serialization according to the HTML standard. If such text nodes contain a special character reserved as an internal marker, they can be combined with other HTML patterns to form malicious snippets. These snippets pass the initial sanitisation layer when the content is parsed into the editor body, but can trigger XSS when the special internal marker is removed from the content and re-parsed. his vulnerability has been patched in TinyMCE versions 6.7.3 and 5.10.9. Users are advised to upgrade. There are no known workarounds for this vulnerability.

CVSS3: 6.1
debian
около 2 лет назад

TinyMCE is an open source rich text editor. A mutation cross-site scri ...

EPSS

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

6.1 Medium

CVSS3

Дефекты

CWE-79