CVE-2024-29881
TinyMCE Cross-Site Scripting (XSS) vulnerability in handling external SVG files through Object or Embed elements
Description
Impact
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.
Fix
TinyMCE 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.
Workarounds
If 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.
Acknowledgements
Tiny Technologies would like to thank Toni Huttunen of Fraktal Oy for discovering this vulnerability.
References
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » tinymcevia npm tinymce | < 7.0.0 | 7.0.0 |
| org.webjars » tinymcevia npm tinymce | < 7.0.0 | 7.0.0 |
| org.webjars.npm » tinymcevia npm tinymce | < 7.0.0 | 7.0.0 |
Blast radius
86% of the dependent artifacts (13) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 70 |
| 2 hops | 32 |
| 3 hops | 1 |
Most used dependents
- com.softicar.platform » platform-workflow-module3 usages
- io.github.ezadmin126 » ezadmin-common2 usages
- com.softicar.platform » platform-core-module2 usages
- org.kantega.flytcms » tiny-mce1 usages
- top.ezadmin » ezadmin-resource1 usages
- io.github.ezadmin126 » ezadmin-core0 usages
- org.wicketstuff » wicketstuff-tinymce60 usages
- io.github.ezadmin126 » ezadmin-java8-spring-starter0 usages
- org.kantega.openaksess » openaksess-webapp0 usages
- io.github.ezadmin126 » ezadmin-java17-spring-starter0 usages
- edu.iu.uits.lms » lms-canvas-multiclassmessenger0 usages
- org.webjars » angular-ui-tinymce0 usages
- top.ezadmin » ezadmin-core0 usages
- com.softicar.platform » platform-demo0 usages
- com.softicar.platform » platform-integration0 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) NuGet (1 package) Packagist (1 package) . See all on OSV
References
| Advisory | NVD CVE-2024-29881 | nvd.nist.gov |
| Package | tinymce/tinymce | github.com |
| Web | tinymce/tinymce advisory GHSA-5359-pvf2-pw78 | github.com |
| Web | tinymce/tinymce commit bcdea2a | github.com |
| Web | docs/tinymce/6/6.8.1-release-notes | tiny.cloud |
| Web | docs/tinymce/7/7.0-release-notes | tiny.cloud |
