8.7high
TinyMCE Cross-Site Scripting (XSS) vulnerability using through data-mce- prefixed src, href, style attributes
- Severity
- 8.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.42% (higher than 28% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-q742-qvgc-gc2f
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 via unsanitized data-mce-* attributes (data-mce-href, data-mce-src, data-mce-style). Allows attackers to inject malicious values that override safe attributes during serialization, bypassing validation. 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 via unsanitized data-mce-* attributes (data-mce-href, data-mce-src, data-mce-style). Allows attackers to inject malicious values that override safe attributes during serialization, bypassing validation. This vulnerability is fixed in 5.11.1, 7.9.3, and 8.5.1.
GitHub Advisory Database
Impact
Stored XSS vulnerability via unsanitized data-mce-* attributes (data-mce-href, data-mce-src, data-mce-style). Allows attackers to inject malicious values that override safe attributes during serialization, bypassing validation.
Patches
Patched by stripping unsafe data-mce-* attributes during parsing. Users should upgrade to the latest patched versions (5 LTS, 7.x, 8.x).
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 Tadi Kadango (website) and Ivan Babenko for their help identifying this vulnerability.
NVD (es)
TinyMCE es un editor de texto enriquecido de código abierto. En versiones anteriores a 5.11.1, 7.9.3 y 8.5.1, existe una vulnerabilidad XSS almacenada a través de atributos data-mce-* no saneados (data-mce-href, data-mce-src, data-mce-style). Permite a los atacantes inyectar valores maliciosos que sobrescriben atributos seguros durante la serialización, eludiendo la validación. Esta vulnerabilidad se ha corregido en 5.11.1, 7.9.3 y 8.5.1.
References
| https://github.com/tinymce/tinymce/security/advisories/GHSA-q742-qvgc-gc2f | 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-47759 | advisory | |
| https://github.com/tinymce/tinymce | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-47759 changed 2026-05-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q742-qvgc-gc2f changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-47759 changed 2026-10-14 | Public domain |