CVE-2023-45818
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedTinyMCE 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceTinyMCE contains a mutation XSS vulnerability in its undo/redo functionality. When HTML passes XSS sanitization but is then manipulated as a string by internal trimming functions before storage in the undo stack, restoration from the undo stack combined with reparative parsing mutates the HTML maliciously, allowing XSS execution.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 5.10.8>= 6.0.0, < 6.7.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify TinyMCE version in useCheck your application's JavaScript dependencies (package.json, node_modules, or loaded scripts) for the tinymce version, or inspect the loaded TinyMCE script and look for the version string in the source (often in tinymce.min.js: search for 'version:' or 'ver=')Affected if The installed version is below 5.10.8, or is 6.0.0 through 6.7.0
-
Confirm undo/redo is availableVerify the TinyMCE editor instance has undo and redo buttons in the toolbar, or check the editor configuration for 'undo' plugin inclusion (it is bundled in the default preset but can be excluded via 'toolbar' or 'plugins' settings)Affected if The undo/redo functionality is present and enabled in the editor configuration
-
Determine if HTML content editing occursReview the editor's mode configuration - check if 'mode' is set to 'design' (default) or 'readonly' is false, and verify the editor is used for HTML-formatted content (not plain text only)Affected if The editor processes and stores HTML content that could be manipulated through the undo/redo mechanism
You are affected if your TinyMCE version falls within the vulnerable range (< 5.10.8 or 6.0.0-6.7.0) and the undo/redo feature is enabled while processing HTML content.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped5.10.86.7.1
Upgrade TinyMCE to version 5.10.8 or higher (for TinyMCE 5) or 6.7.1 or higher (for TinyMCE 6). No workarounds exist.
TinyMCE 5.10.8 (for 5.x users) or TinyMCE 6.7.1 (for 6.x users)
- Identify the current TinyMCE version in use by checking the JavaScript file or package.json dependency
- If using TinyMCE 5.x (versions < 5.10.8), upgrade to version 5.10.8
- If using TinyMCE 6.x (versions >= 6.0.0 and < 6.7.1), upgrade to version 6.7.1
- Update the TinyMCE script reference or npm/yarn package dependency to the appropriate fixed version
- Clear any cached versions of TinyMCE in the application
- Test the editor functionality including undo/redo operations in a staging environment
- Deploy the updated version to production
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,232.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-45818 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2023-45818 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data