6.1medium
Cross-site scripting vulnerability in TinyMCE
- Severity
- 6.1medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.17% (higher than 68% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-w7jx-j77m-wp65
Description
TinyMCE versions before 5.6.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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| TinyMCE | before 5.6.0 | CVE List |
| tinymce (npm) | before 5.6.0 | GitHub Advisory Database |
| TinyMCE (NuGet) | before 5.6.0 | GitHub Advisory Database |
| tinymce/tinymce (Packagist) | before 5.6.0 | GitHub Advisory Database |
| tiny tinymce | before 5.6.0 | NVD |
All scores
| CISA-ADP | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | medium rating | |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
TinyMCE versions before 5.6.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.
GitHub Advisory Database
Impact
A cross-site scripting (XSS) vulnerability was discovered in the URL sanitization 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 APIs. This impacts all users who are using TinyMCE 5.5.1 or lower.
Patches
This vulnerability has been patched in TinyMCE 5.6.0 by improved URL sanitization logic.
Workarounds
To work around this vulnerability, either:
- Upgrade to TinyMCE 5.6.0 or higher
- Manually sanitize
iframe,objectandembedURL attributes using a TinyMCE node filter. - Disable
iframe,object, andembedelements in your content using the invalid_elements setting.
Example: Sanitizing using a node filter
editor.parser.addNodeFilter('iframe,object,embed', function(nodes) {
nodes.forEach(function(node) {
if (node.attributes) {
node.attributes.forEach(function(attr) {
var name = attr.name;
var value = attr.value;
// Sanitize the attribute value here or remove it entirely
var sanitizedValue = ...;
node.attr(name, santizedValue);
});
}
});
});
Example: Using invalid_elements
invalid_elements: 'iframe,object,embed'
Acknowledgements
Tiny Technologies would like to thank Aaron Bishop at SecurityMetrics for discovering this vulnerability.
References
https://www.tiny.cloud/docs/release-notes/release-notes56/#securityfixes
For more information
If you have any questions or comments about this advisory:
- Open an issue in the TinyMCE repo
- Email us at infosec@tiny.cloud
NVD (es)
Las versiones de TinyMCE anteriores a la 5.6.0 se ven afectadas por una vulnerabilidad de cross site scripting almacenado. Un atacante remoto y no autenticado podría insertar HTML manipulado en el editor, lo que provocaría la ejecución arbitraria de JavaScript en el navegador de otro usuario.
References
| https://github.com/tinymce/tinymce/security/advisories/GHSA-w7jx-j77m-wp65 | exploit, third-party-advisory, vendor-advisory, web | |
| https://www.npmjs.com/package/tinymce | related, release-notes, web | |
| https://www.tiny.cloud/docs/release-notes/release-notes56/#securityfixes | related, release-notes, web | |
| https://github.com/advisories/GHSA-w7jx-j77m-wp65 | exploit, third-party-advisory, vendor-advisory | |
| https://vulncheck.com/advisories/vc-advisory-GHSA-w7jx-j77m-wp65 | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21911 changed 2026-11-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w7jx-j77m-wp65 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2024-21911 changed 2026-07-14 | Public domain |