# CVE-2023-45818: Cross-site Scripting vulnerability in TinyMCE undo/redo, getContent API, resetContent API, and Autosave plugin

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-01)
- Published: 2023-10-19T16:36:29.000Z
- Modified: 2026-09-10T03:49:25.360Z
- Also known as: GHSA-v65r-p3vv-jjfv
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- tinymce tinymce: < 5.10.8; >= 6.0.0, < 6.7.1
- tinymce (npm): from 6.0.0 before 6.7.1; before 5.10.8
- TinyMCE (NuGet): from 6.0.0 before 6.7.1; before 5.10.8
- tinymce/tinymce (Packagist): from 6.0.0 before 6.7.1; before 5.10.8
- tiny tinymce: before 5.10.8; from 6.0.0 before 6.7.1

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/tinymce/tinymce/security/advisories/GHSA-v65r-p3vv-jjfv> (vendor-advisory, web)
- <https://researchgate.net/publication/266654651_mXSS_attacks_Attacking_well-secured_web-applications_by_using_innerHTML_mutations> (third-party-advisory, web)
- <https://tiny.cloud/docs/release-notes/release-notes5108/#securityfixes> (release-notes, web)
- <https://tiny.cloud/docs/tinymce/6/6.7.1-release-notes/#security-fixes> (release-notes, web)
- <https://www.tiny.cloud/docs/api/tinymce.html/tinymce.html.saxparser/> (product)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-45818> (advisory)
- <https://github.com/tinymce/tinymce> (package)
- <https://www.tiny.cloud/docs/api/tinymce.html/tinymce.html.saxparser> (web)

## Sources

- CVE List: [CVE-2023-45818](https://www.cve.org/CVERecord?id=CVE-2023-45818), CVE Terms of Use, modified 2024-09-12
- GitHub Advisory Database: [GHSA-v65r-p3vv-jjfv](https://github.com/advisories/GHSA-v65r-p3vv-jjfv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-45818](https://nvd.nist.gov/vuln/detail/CVE-2023-45818), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-45818 · Whole record: https://cve.day/CVE-2023-45818.json · Rebuilt by cve.day 2026-11-25T22:58:28.951Z
