{"id":"CVE-2024-21911","aliases":["CVE-2024-21911","GHSA-w7jx-j77m-wp65"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site scripting vulnerability in TinyMCE","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA 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.\n\n### Patches\nThis vulnerability has been patched in TinyMCE 5.6.0 by improved URL sanitization logic.\n\n### Workarounds\nTo work around this vulnerability, either:\n- Upgrade to TinyMCE 5.6.0 or higher\n- Manually sanitize `iframe`, `object` and `embed` URL attributes using a [TinyMCE node filter](https://www.tiny.cloud/docs/api/tinymce.html/tinymce.html.domparser/#addnodefilter).\n- Disable `iframe`, `object`, and `embed` elements in your content using the [invalid_elements](https://www.tiny.cloud/docs/configure/content-filtering/#invalid_elements) setting.\n\n#### Example: Sanitizing using a node filter\n```js\neditor.parser.addNodeFilter('iframe,object,embed', function(nodes) {\n  nodes.forEach(function(node) {\n    if (node.attributes) {\n      node.attributes.forEach(function(attr) {\n        var name = attr.name;\n        var value = attr.value;\n        // Sanitize the attribute value here or remove it entirely\n        var sanitizedValue = ...;\n        node.attr(name, santizedValue);\n      });\n    }\n  });\n});\n```\n\n#### Example: Using invalid_elements\n```js\ninvalid_elements: 'iframe,object,embed'\n```\n\n### Acknowledgements\nTiny Technologies would like to thank Aaron Bishop at SecurityMetrics for discovering this vulnerability.\n\n### References\nhttps://www.tiny.cloud/docs/release-notes/release-notes56/#securityfixes\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in the [TinyMCE repo](https://github.com/tinymce/tinymce/issues)\n* Email us at [infosec@tiny.cloud](mailto:infosec@tiny.cloud)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2021-01-06T19:27:54.000Z","modified":"2026-11-08T13:59:52.868Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver 2.0.0","introduced":"0","fixed":"5.6.0","status":"affected"}],"package":"TinyMCE","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.6.0"}],"ecosystem":"npm","package":"tinymce","purl":"pkg:npm/tinymce","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.6.0"}],"ecosystem":"NuGet","package":"TinyMCE","purl":"pkg:nuget/TinyMCE","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.6.0"}],"ecosystem":"Packagist","package":"tinymce/tinymce","purl":"pkg:composer/tinymce/tinymce","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.6.0"}],"vendor":"tiny","product":"tinymce","cpe":"cpe:2.3:a:tiny:tinymce:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/tinymce/tinymce/security/advisories/GHSA-w7jx-j77m-wp65","tags":["exploit","third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/tinymce","tags":["related","release-notes","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.tiny.cloud/docs/release-notes/release-notes56/#securityfixes","tags":["related","release-notes","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/advisories/GHSA-w7jx-j77m-wp65","tags":["exploit","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://vulncheck.com/advisories/vc-advisory-GHSA-w7jx-j77m-wp65","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-01-16T19:26:37.180Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-21911","url":"https://www.cve.org/CVERecord?id=CVE-2024-21911","licence":"CVE Terms of Use","modified":"2026-11-08T13:59:52.868Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w7jx-j77m-wp65","url":"https://github.com/advisories/GHSA-w7jx-j77m-wp65","licence":"CC-BY-4.0","modified":"2026-07-08T06:53:10.736Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-21911","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21911","licence":"Public domain","modified":"2026-07-14T23:17:14.637Z"}],"updatedAt":"2026-11-25T22:58:35.910Z","epss":{"score":0.01165,"percentile":0.68205,"date":"2026-12-01T12:00:22.000Z"}}