{"id":"CVE-2023-45818","aliases":["CVE-2023-45818","GHSA-v65r-p3vv-jjfv"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting vulnerability in TinyMCE undo/redo, getContent API, resetContent API, and Autosave plugin","summary":"TinyMCE is an open source rich text editor. A mutation cross-site scripting (mXSS) vulnerability was discovered in TinyMCE’s core undo and redo functionality. When a carefully-crafted HTML snippet passes the XSS sanitisation layer, it is manipulated as a string by internal trimming functions before being stored in the undo stack. If the HTML snippet is restored from the undo stack, the combination of the string manipulation and reparative parsing by either the browser's native [DOMParser API](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser) (TinyMCE 6) or the SaxParser API (TinyMCE 5) mutates the HTML maliciously, allowing an XSS payload to be executed. This vulnerability has been patched in TinyMCE 5.10.8 and TinyMCE 6.7.1 by ensuring HTML is trimmed using node-level manipulation instead of string manipulation. Users are advised to upgrade. There are no known workarounds for this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"TinyMCE is an open source rich text editor. A mutation cross-site scripting (mXSS) vulnerability was discovered in TinyMCE’s core undo and redo functionality. When a carefully-crafted HTML snippet passes the XSS sanitisation layer, it is manipulated as a string by internal trimming functions before being stored in the undo stack. If the HTML snippet is restored from the undo stack, the combination of the string manipulation and reparative parsing by either the browser's native [DOMParser API](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser) (TinyMCE 6) or the SaxParser API (TinyMCE 5) mutates the HTML maliciously, allowing an XSS payload to be executed. This vulnerability has been patched in TinyMCE 5.10.8 and TinyMCE 6.7.1 by ensuring HTML is trimmed using node-level manipulation instead of string manipulation. Users are advised to upgrade. There are no known workarounds for this vulnerability.","source":"cvelist"},{"lang":"en","text":"### Impact\nA [mutation cross-site scripting](https://researchgate.net/publication/266654651_mXSS_attacks_Attacking_well-secured_web-applications_by_using_innerHTML_mutations) (mXSS) vulnerability was discovered in TinyMCE’s core undo and redo functionality. When a carefully-crafted HTML snippet passes the XSS sanitisation layer, it is manipulated as a string by internal trimming functions before being stored in the undo stack. If the HTML snippet is restored from the undo stack, the combination of the string manipulation and reparative parsing by either the browser's native [DOMParser API](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser) (TinyMCE 6) or the [SaxParser API](https://www.tiny.cloud/docs/api/tinymce.html/tinymce.html.saxparser/) (TinyMCE 5) mutates the HTML maliciously, allowing an XSS payload to be executed.\n​This vulnerability also impacts these related TinyMCE APIs and plugins:​\n* [`tinymce.Editor.getContent({ format: 'raw' })`](https://tiny.cloud/docs/tinymce/6/apis/tinymce.editor/#getContent)\n* [`tinymce.Editor.resetContent()`](https://tiny.cloud/docs/tinymce/6/apis/tinymce.editor/#resetContent)\n* [Autosave Plugin](https://tiny.cloud/docs/tinymce/6/autosave/)\n\n### Patches\nThis vulnerability has been patched in TinyMCE 5.10.8 and TinyMCE 6.7.1 by ensuring HTML is trimmed using node-level manipulation instead of string manipulation.\n\n### Fix\nTo avoid this vulnerability:\n* Upgrade to TinyMCE 5.10.8 or higher for TinyMCE 5.x.\n* Upgrade to TinyMCE 6.7.1 or higher for TinyMCE 6.x.\n\n### Acknowledgements\nTiny Technologies would like to thank Masato Kinugawa of [Cure53](https://cure53.de/) for discovering this vulnerability.\n\n### References\n* [TinyMCE 5.10.8 Release Notes](https://tiny.cloud/docs/release-notes/release-notes5108/)\n* [TinyMCE 6.7.1 Release Notes](https://tiny.cloud/docs/tinymce/6/6.7.1-release-notes/)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at <infosec@tiny.cloud>\n* Open an issue in the [TinyMCE repo](https://github.com/tinymce/tinymce/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)","format":"markdown","source":"ghsa"},{"lang":"es","text":"TinyMCE es un editor de texto enriquecido de código abierto. Se descubrió una vulnerabilidad de Cross-Site Scripting (XSS) en la funcionalidad principal de deshacer y rehacer de TinyMCE. Cuando un fragmento de HTML cuidadosamente manipulado pasa la capa de sanitización XSS, las funciones de recorte internas lo manipulan como una cadena antes de almacenarlo en la pila de deshacer. Si el fragmento HTML se restaura desde la pila de deshacer, la combinación de manipulación de cadenas y análisis reparativo mediante la [API DOMParser] nativa del navegador (https://developer.mozilla.org/en-US/docs/Web/API/ DOMParser) (TinyMCE 6) o la API SaxParser (TinyMCE 5) muta el HTML de forma maliciosa, permitiendo que se ejecute un payload XSS. Esta vulnerabilidad se ha solucionado en TinyMCE 5.10.8 y TinyMCE 6.7.1 garantizando que HTML se recorte mediante manipulación a nivel de nodo en lugar de manipulación de cadenas. Se recomienda a los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.","source":"nvd"}],"published":"2023-10-19T16:36:29.000Z","modified":"2026-09-10T03:49:25.360Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 5.10.8","status":"affected"},{"version":">= 6.0.0, < 6.7.1","status":"affected"}],"vendor":"tinymce","product":"tinymce","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.7.1"}],"ecosystem":"npm","package":"tinymce","purl":"pkg:npm/tinymce","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.7.1"}],"ecosystem":"NuGet","package":"TinyMCE","purl":"pkg:nuget/TinyMCE","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.7.1"}],"ecosystem":"Packagist","package":"tinymce/tinymce","purl":"pkg:composer/tinymce/tinymce","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.10.8"}],"ecosystem":"npm","package":"tinymce","purl":"pkg:npm/tinymce","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.10.8"}],"ecosystem":"NuGet","package":"TinyMCE","purl":"pkg:nuget/TinyMCE","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.10.8"}],"ecosystem":"Packagist","package":"tinymce/tinymce","purl":"pkg:composer/tinymce/tinymce","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.10.8"},{"status":"affected","introduced":"6.0.0","fixed":"6.7.1"}],"vendor":"tiny","product":"tinymce","cpe":"cpe:2.3:a:tiny:tinymce:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/tinymce/tinymce/security/advisories/GHSA-v65r-p3vv-jjfv","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://researchgate.net/publication/266654651_mXSS_attacks_Attacking_well-secured_web-applications_by_using_innerHTML_mutations","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://tiny.cloud/docs/release-notes/release-notes5108/#securityfixes","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://tiny.cloud/docs/tinymce/6/6.7.1-release-notes/#security-fixes","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.tiny.cloud/docs/api/tinymce.html/tinymce.html.saxparser/","tags":["product","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-45818","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tinymce/tinymce","tags":["package"],"sources":["ghsa"]},{"url":"https://www.tiny.cloud/docs/api/tinymce.html/tinymce.html.saxparser","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-12T15:36:29.394Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-45818","url":"https://www.cve.org/CVERecord?id=CVE-2023-45818","licence":"CVE Terms of Use","modified":"2024-09-12T15:36:41.178Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v65r-p3vv-jjfv","url":"https://github.com/advisories/GHSA-v65r-p3vv-jjfv","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:25.360Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-45818","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-45818","licence":"Public domain","modified":"2026-06-17T06:29:35.170Z"}],"updatedAt":"2026-11-25T22:58:28.951Z","epss":{"score":0.00759,"percentile":0.56493,"date":"2026-12-01T12:00:22.000Z"}}