MODERATE 4.3

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)

ArtifactAffected versionsFixed 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

2affected artifacts
54affected versions
15dependent artifacts (est.)
103dependent versions

86% of the dependent artifacts (13) still pull an affected version in their latest release.

DepthDependent versions
Direct
70
2 hops
32
3 hops
1

Most used dependents

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