{"id":"CVE-2024-29881","aliases":["CVE-2024-29881","GHSA-5359-pvf2-pw78"],"related":[],"kind":"vulnerability","state":"published","title":"TinyMCE Cross-Site Scripting (XSS) vulnerability in handling external SVG files through Object or Embed elements","summary":"TinyMCE is an open source rich text editor.  A cross-site scripting (XSS) vulnerability was discovered in TinyMCE’s content loading and content inserting code. A SVG image could be loaded though an `object` or `embed` element and that image could potentially contain a XSS payload. This vulnerability is fixed in 6.8.1 and 7.0.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"TinyMCE is an open source rich text editor.  A cross-site scripting (XSS) vulnerability was discovered in TinyMCE’s content loading and content inserting code. A SVG image could be loaded though an `object` or `embed` element and that image could potentially contain a XSS payload. This vulnerability is fixed in 6.8.1 and 7.0.0.","source":"cvelist"},{"lang":"en","text":"### Impact\nA [cross-site scripting (XSS)](https://owasp.org/www-community/attacks/xss/) vulnerability was discovered in TinyMCE’s content loading and content inserting code. A SVG image could be loaded though an `object` or `embed` element and that image could potentially contain a XSS payload.\n\n### Fix\nTinyMCE 6.8.1 introduced a new `convert_unsafe_embeds` option to automatically convert `object` and `embed` elements respective of their `type` attribute.  From TinyMCE 7.0.0 onwards, the `convert_unsafe_embeds` option is enabled by default.\n\n### Workarounds\nIf you are using TinyMCE 6.8.1 or higher, set `convert_unsafe_embeds` to true. For any earlier versions, a custom NodeFilter is recommended to remove or modify any `object` or `embed` elements. This can be added using the `editor.parser.addNodeFilter` and `editor.serializer.addNodeFilter` APIs.\n\n### Acknowledgements\nTiny Technologies would like to thank Toni Huttunen of [Fraktal Oy](https://www.fraktal.fi/) for discovering this vulnerability.\n\n### References\n- [TinyMCE 6.8.1](https://www.tiny.cloud/docs/tinymce/6/6.8.1-release-notes/#new-convert_unsafe_embeds-option-that-controls-whether-object-and-embed-elements-will-be-converted-to-more-restrictive-alternatives-namely-img-for-image-mime-types-video-for-video-mime-types-audio-audio-mime-types-or-iframe-for-other-or-unspecified-mime-types)\n- [TinyMCE 7.0.0](https://www.tiny.cloud/docs/tinymce/7/7.0-release-notes/#convert_unsafe_embeds-editor-option-is-now-defaulted-to-true)","format":"markdown","source":"ghsa"},{"lang":"es","text":"TinyMCE es un editor de texto enriquecido de código abierto. Se descubrió una vulnerabilidad de cross-site scripting (XSS) en el código de carga e inserción de contenido de TinyMCE. Se podría cargar una imagen SVG a través de un elemento \"objeto\" o \"incrustar\" y esa imagen podría contener potencialmente un payload XSS. Esta vulnerabilidad se solucionó en 6.8.1 y 7.0.0.","source":"nvd"}],"published":"2024-03-26T13:31:15.375Z","modified":"2026-09-10T03:50:10.436Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","score":4.3,"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":[{"version":"< 7.0.0","status":"affected"}],"vendor":"tinymce","product":"tinymce","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.0"}],"ecosystem":"Packagist","package":"tinymce/tinymce","purl":"pkg:composer/tinymce/tinymce","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.0.0"}],"ecosystem":"npm","package":"tinymce","purl":"pkg:npm/tinymce","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.0"}],"ecosystem":"NuGet","package":"TinyMCE","purl":"pkg:nuget/TinyMCE","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.8.1"},{"status":"affected","introduced":"6.8.2","fixed":"7.0.0"}],"vendor":"tiny","product":"tinymce","cpe":"cpe:2.3:a:tiny:tinymce:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/tinymce/tinymce/security/advisories/GHSA-5359-pvf2-pw78","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tinymce/tinymce/commit/bcdea2ad14e3c2cea40743fb48c63bba067ae6d1","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.tiny.cloud/docs/tinymce/6/6.8.1-release-notes/#new-convert_unsafe_embeds-option-that-controls-whether-object-and-embed-elements-will-be-converted-to-more-restrictive-alternatives-namely-img-for-image-mime-types-video-for-video-mime-types-audio-audio-mime-types-or-iframe-for-other-or-unspecified-mime-types","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.tiny.cloud/docs/tinymce/7/7.0-release-notes/#convert_unsafe_embeds-editor-option-is-now-defaulted-to-true","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-29881","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tinymce/tinymce","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-08-02T17:59:17.492Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-29881","url":"https://www.cve.org/CVERecord?id=CVE-2024-29881","licence":"CVE Terms of Use","modified":"2024-08-02T17:59:24.301Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5359-pvf2-pw78","url":"https://github.com/advisories/GHSA-5359-pvf2-pw78","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:10.436Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-29881","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-29881","licence":"Public domain","modified":"2026-06-17T07:23:17.783Z"}],"updatedAt":"2026-11-25T22:58:37.903Z","epss":{"score":0.00713,"percentile":0.54832,"date":"2026-12-01T12:00:22.000Z"}}