CVE-2024-21908
mediumpriority · track · 24EPSS 0.011 · 65 %ileEUUSEPSS · scored 2026-10-27
TinyMCE versions before 5.9.0 are affected by a stored cross-site scripting vulnerability. An unauthenticated and remote attacker could insert crafted HTML into the editor resulting in arbitrary JavaScript execution in another user's browser.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-5h9g-x5rv-25wgCross-site scripting vulnerability in TinyMCE2021-10-22ghsa · osvUS
### Impact A cross-site scripting (XSS) vulnerability was discovered in the schema validation logic of the core parser. The vulnerability allowed arbitrary JavaScript execution when inserting a specially crafted piece of content into the editor using the clipboard or editor APIs. This malicious content could then end up in content published outside the editor, if no server-side sanitization was performed. This impacts all users who are using TinyMCE 5.8.2 or lower. ### Patches This vulnerability has been patched in TinyMCE 5.9.0 by ensuring schema validation was still performed after unwrapping invalid elements. ### Workarounds To work around this vulnerability, either: - Upgrade to TinyMCE 5.9.0 or higher - Manually sanitize the content using the `BeforeSetContent` event (see below) #### Example: Manually sanitize content ```js editor.on('BeforeSetContent', function(e) { var sanitizedContent = ...; // Manually sanitize content here e.content = sanitizedContent; }); ``` ### Acknowledgements Tiny Technologies would like to thank William Bowling for discovering this vulnerability. ### References https://www.tiny.cloud/docs/release-notes/release-notes59/#securityfixes ### For more information If you have any questions or comments about this advisory: * Email us at [infosec@tiny.cloud](mailto:infosec@tiny.cloud) * Open an issue in the [TinyMCE repo](https://github.com/tinymce/tinymce/issues)
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2024-21908cnnvd
- https://cxsecurity.com/cveshow/CVE-2024-21908/cnnvd
- https://github.com/advisories/GHSA-5h9g-x5rv-25wgcnnvd
- https://github.com/tinymce/tinymce/security/advisories/GHSA-5h9g-x5rv-25wgcnnvd
- https://vulncheck.com/advisories/vc-advisory-GHSA-5h9g-x5rv-25wgcnnvd
- https://www.tiny.cloud/docs/release-notes/release-notes59/#securityfixescnnvd
- https://github.com/advisories/GHSA-5h9g-x5rv-25wgenisa_euvd
- https://github.com/tinymce/tinymce/security/advisories/GHSA-5h9g-x5rv-25wgenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan