{"id":"CVE-2023-45818","published":"2023-10-19T21:18:01Z","modified":"2024-09-12T15:36:41Z","title":"Cross-site Scripting vulnerability in TinyMCE undo/redo, getContent API, resetContent API, and Autosave plugin","vendor":"tinymce","product":"tinymce","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00759,"percentile":0.56187,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/tinymce/tinymce/security/advisories/GHSA-v65r-p3vv-jjfv","tags":["x_refsource_CONFIRM"]},{"url":"https://researchgate.net/publication/266654651_mXSS_attacks_Attacking_well-secured_web-applications_by_using_innerHTML_mutations","tags":["x_refsource_MISC"]},{"url":"https://tiny.cloud/docs/release-notes/release-notes5108/#securityfixes","tags":["x_refsource_MISC"]},{"url":"https://tiny.cloud/docs/tinymce/6/6.7.1-release-notes/#security-fixes","tags":["x_refsource_MISC"]},{"url":"https://www.tiny.cloud/docs/api/tinymce.html/tinymce.html.saxparser/","tags":["x_refsource_MISC"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":11.24},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"tinymce","affectedVersions":[{"vendor":"tinymce","product":"tinymce","versions":["< 5.10.8",">= 6.0.0, < 6.7.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-12T15:36:29.394147Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tinymce","vulnerableRanges":[">=6.0.0, <6.7.1","<5.10.8"],"patched":["6.7.1","5.10.8"],"from":["GHSA-v65r-p3vv-jjfv"],"provenance":"source"},{"ecosystem":"NuGet","package":"TinyMCE","vulnerableRanges":[">=6.0.0, <6.7.1","<5.10.8"],"patched":["6.7.1","5.10.8"],"from":["GHSA-v65r-p3vv-jjfv"],"provenance":"source"},{"ecosystem":"Packagist","package":"tinymce/tinymce","vulnerableRanges":[">=6.0.0, <6.7.1","<5.10.8"],"patched":["6.7.1","5.10.8"],"from":["GHSA-v65r-p3vv-jjfv"],"provenance":"source"}],"summary":{"text":"TinyMCE's core undo/redo functionality (affecting the getContent, resetContent, and Autosave plugin paths) contains a mutation cross-site scripting flaw: HTML that passes the sanitisation layer can be altered by string-based trimming before being stored in the undo stack, then reparsed into executable script when restored. An attacker who can get crafted HTML into the editor can run script in the victim's browser, but only if the victim interacts with the page (such as performing an undo or redo), with no authentication required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:01Z"},"euvd":{"id":"EUVD-2023-2813","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-21908","published":"2024-01-03","fixed":"5.9.0","kev":false},{"cve":"CVE-2024-21910","published":"2024-01-03","fixed":"5.10.0","kev":false},{"cve":"CVE-2022-23494","published":"2022-12-08","fixed":"6.3.1","kev":false,"link":{"from":"CVE-2022-23494","to":"CVE-2023-45818","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tinymce","fromFixed":"6.3.1","toFixed":"6.7.1","daysApart":315},{"kind":"version-step","provenance":"source","package":"npm:tinymce","fromFixed":"5.10.7","toFixed":"5.10.8","daysApart":315}]}},{"cve":"CVE-2023-45818","published":"2023-10-19","fixed":"6.7.1","kev":false},{"cve":"CVE-2023-45819","published":"2023-10-19","fixed":"6.7.1","kev":false},{"cve":"CVE-2023-48219","published":"2023-11-15","fixed":"6.7.3","kev":false,"link":{"from":"CVE-2023-45818","to":"CVE-2023-48219","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tinymce","fromFixed":"6.7.1","toFixed":"6.7.3","daysApart":27},{"kind":"version-step","provenance":"source","package":"npm:tinymce","fromFixed":"5.10.8","toFixed":"5.10.9","daysApart":27}]}},{"cve":"CVE-2024-29203","published":"2024-03-26","fixed":"6.8.1","kev":false}],"package":"npm:tinymce"}}