4.3medium
TinyMCE Cross-Site Scripting (XSS) vulnerability in handling external SVG files through Object or Embed elements
- Severity
- 4.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.71% (higher than 54% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-5359-pvf2-pw78
Description
TinyMCE is an open source rich text editor. A cross-site scripting (XSS) vulnerability was discovered in TinyMCE’s content loading and content inserting code. A SVG image could be loaded though an `object` or `embed` element and that image could potentially contain a XSS payload. This vulnerability is fixed in 6.8.1 and 7.0.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tinymce tinymce | < 7.0.0 | CVE List |
| tinymce/tinymce (Packagist) | before 7.0.0 | GitHub Advisory Database |
| tinymce (npm) | before 7.0.0 | GitHub Advisory Database |
| TinyMCE (NuGet) | before 7.0.0 | GitHub Advisory Database |
| tiny tinymce | before 6.8.1, from 6.8.2 before 7.0.0 | NVD |
All scores
| GitHub_M | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
TinyMCE is an open source rich text editor. A cross-site scripting (XSS) vulnerability was discovered in TinyMCE’s content loading and content inserting code. A SVG image could be loaded though an `object` or `embed` element and that image could potentially contain a XSS payload. This vulnerability is fixed in 6.8.1 and 7.0.0.
GitHub Advisory Database
Impact
A cross-site scripting (XSS) vulnerability was discovered in TinyMCE’s content loading and content inserting code. A SVG image could be loaded though an object or embed element and that image could potentially contain a XSS payload.
Fix
TinyMCE 6.8.1 introduced a new convert_unsafe_embeds option to automatically convert object and embed elements respective of their type attribute. From TinyMCE 7.0.0 onwards, the convert_unsafe_embeds option is enabled by default.
Workarounds
If you are using TinyMCE 6.8.1 or higher, set convert_unsafe_embeds to true. For any earlier versions, a custom NodeFilter is recommended to remove or modify any object or embed elements. This can be added using the editor.parser.addNodeFilter and editor.serializer.addNodeFilter APIs.
Acknowledgements
Tiny Technologies would like to thank Toni Huttunen of Fraktal Oy for discovering this vulnerability.
References
NVD (es)
TinyMCE es un editor de texto enriquecido de código abierto. Se descubrió una vulnerabilidad de cross-site scripting (XSS) en el código de carga e inserción de contenido de TinyMCE. Se podría cargar una imagen SVG a través de un elemento "objeto" o "incrustar" y esa imagen podría contener potencialmente un payload XSS. Esta vulnerabilidad se solucionó en 6.8.1 y 7.0.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-29881 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5359-pvf2-pw78 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-29881 changed 2026-06-17 | Public domain |