8.7high
TinyMCE Cross-Site Scripting (XSS) vulnerability using media plugin `data-mce-object` injection
- Severity
- 8.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.26% (higher than 19% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vg35-5wq7-3x7w
Description
TinyMCE is an open source rich text editor. Prior to 5.11.1, 7.9.3, and 8.5.1, there is a stored XSS vulnerability in the media plugin. Attackers can inject malicious scripts via crafted data-mce-* attributes, which are executed when content is rendered. Impacts users of TinyMCE with the media plugin enabled. This vulnerability is fixed in 5.11.1, 7.9.3, and 8.5.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tinymce tinymce | < 5.11.1, >= 6.0.0, <= 6.8.6, >= 7.0.0, < 7.9.3, >= 8.0.0, < 8.5.1 | CVE List |
| tinymce (npm) | up to 5.10.9, from 6.0.0 before 7.9.3, from 8.0.0 before 8.5.1 | GitHub Advisory Database |
| TinyMCE (NuGet) | up to 5.10.9, from 6.0.0 before 7.9.3, from 8.0.0 before 8.5.1 | GitHub Advisory Database |
| tinymce/tinymce (Packagist) | up to 5.10.9, from 6.0.0 before 7.9.3, from 8.0.0 before 8.5.1 | GitHub Advisory Database |
| tiny tinymce | before 5.11.1, from 6.0.0 before 7.9.3, from 8.0.0 before 8.5.1 | NVD |
All scores
| GitHub_M | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| GitHub | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
TinyMCE is an open source rich text editor. Prior to 5.11.1, 7.9.3, and 8.5.1, there is a stored XSS vulnerability in the media plugin. Attackers can inject malicious scripts via crafted data-mce-* attributes, which are executed when content is rendered. Impacts users of TinyMCE with the media plugin enabled. This vulnerability is fixed in 5.11.1, 7.9.3, and 8.5.1.
GitHub Advisory Database
Impact
Stored XSS vulnerability in the media plugin. Attackers can inject malicious scripts via crafted data-mce-* attributes, which are executed when content is rendered. Impacts users of TinyMCE with the media plugin enabled.
Patches
This vulnerability has been patched in TinyMCE 8.5.1, TinyMCE 7.9.3 and TinyMCE 5.11.1 LTS by ensuring that, when using the media plugin, any content with data-mce-object and data-mce-p-* attributes are properly sanitized.
Workarounds
No official workaround available.
Fix
To avoid this vulnerability:
- Upgrade to TinyMCE 8.5.1 or higher.
- Upgrade to TinyMCE 7.9.3 or higher.
- Upgrade to TinyMCE 5.11.1 LTS or higher for TinyMCE 5.x (only available as part of commercial long-term support contract).
Acknowledgements
Tiny thanks Aymane MAZGUITI and Ange Primiterra for their help identifying this vulnerability.
NVD (es)
TinyMCE es un editor de texto enriquecido de código abierto. Anteriormente a las versiones 5.11.1, 7.9.3 y 8.5.1, existe una vulnerabilidad XSS almacenada en el plugin de medios. Los atacantes pueden inyectar scripts maliciosos a través de atributos data-mce-* manipulados, los cuales se ejecutan cuando el contenido es renderizado. Afecta a los usuarios de TinyMCE con el plugin de medios habilitado. Esta vulnerabilidad está corregida en las versiones 5.11.1, 7.9.3 y 8.5.1.
References
| https://github.com/tinymce/tinymce/security/advisories/GHSA-vg35-5wq7-3x7w | patch, vendor-advisory, web | |
| https://www.tiny.cloud/docs/tinymce/7/7.9.3-release-notes/#overview | release-notes, web | |
| https://www.tiny.cloud/docs/tinymce/8/8.5.1-release-notes/#overview | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-47761 | advisory | |
| https://github.com/tinymce/tinymce | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-47761 changed 2026-05-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vg35-5wq7-3x7w changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-47761 changed 2026-10-14 | Public domain |