CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2024-29203

CVE-2024-29203: Client-Side Cross-Site Scripting via Unsandboxed Iframes and Legacy Embed Elements in TinyMCE

Amit Schendel
Amit Schendel
Senior Security Researcher

Jun 9, 2026·5 min read·25 visits

Executive Summary (TL;DR)

TinyMCE versions prior to 6.8.1 failed to sandbox pasted/inserted iframes or convert risky object and embed tags, allowing attackers to execute arbitrary scripts in the application context via client-side payloads.

CVE-2024-29203 identifies a cross-site scripting (XSS) vulnerability in the content ingestion and parsing mechanics of TinyMCE rich text editor. Due to a failure to enforce sandbox attributes on dynamic iframe elements and safely handle legacy embed objects, unauthenticated attackers can inject malicious elements that execute scripts within the context of the parent application session.

Vulnerability Overview

TinyMCE is an open-source, web-based rich text editor widely integrated into content management systems, email clients, and collaboration platforms. To allow users to draft formatted text, media, and other embedded visual objects, the editor processes complex HTML documents through an internal parsing subsystem. This ingestion layer relies on a DOM parser to filter input markup, ensuring it conforms to configured schema specifications and security constraints.\n\nThe primary attack surface resides within elements that permit content embedding, specifically <iframe>, <object>, and <embed> nodes. Historically, these tags were accepted as long as they met the standard dimension and structure constraints defined in the schema. This design did not restrict nested capabilities or isolate the embedded frames from the execution scope of the primary application.\n\nUnder default configurations in versions prior to 6.8.1, the editor did not apply restrictive isolation attributes such as sandbox to <iframe> elements. This programmatic gap allowed attackers to introduce scripting elements that could execute within the DOM tree of the parent web application, compromising client-side security controls.

Root Cause Analysis

The core of the vulnerability lies in the parser's passive processing of embedded document nodes. When TinyMCE parses imported markup (via paste actions or programmatically through APIs like setContent()), the DomParser validates elements against an allowed-list schema. If the schema permitted iframes, the parser constructed the DOM node without inspecting or rewriting its security-sensitive attributes.\n\nUnsandboxed iframes represent a severe risk in browser environments. If an iframe points to an external source or defines inline script using schemes like javascript: or data:text/html, the browser executes the script in the origin context of the parent frame unless restricted. This allows direct programmatic read-and-write access to cookie jars, session tokens, and document structures of the host application.\n\nFurthermore, the parser accepted legacy <object> and <embed> tags. These legacy elements were designed to launch binary browser extensions (including Java, Adobe Flash, and various PDF viewers). In modern browsers, these elements can execute complex interactions or force the browser to process parameter arrays that trigger unauthorized behaviors, bypassing standard script restrictions.\n\nThe failure to automatically sanitize these elements or transform them into safe alternatives meant that malicious actors could manipulate the active editor environment. Because these settings defaulted to unmitigated states in all versions of TinyMCE 6.x, users hosting default instances were left exposed.

Code Implementation & Patch Analysis

The patch with commit ID bcdea2ad14e3c2cea40743fb48c63bba067ae6d1 mitigates these risks by adding configuration-controlled filters. These filters are defined within the ParserFilters.ts and Options.ts modules. Two core configurations were introduced: sandbox_iframes and convert_unsafe_embeds.\n\nThe options registration assigns a boolean validation processor to both configurations, ensuring that administrators can explicitly manage parsing policies. In version 6.8.1, these default to false for backwards compatibility. In version 7.0.0, the default for sandbox_iframes was updated to true to ensure out-of-the-box protection.\n\nThe core processing logic added to ParserFilters.ts utilizes the addNodeFilter API. When parsing runs, nodes matching object or embed are captured and routed through a transformation filter. This filter converts the legacy tags into safe semantic counterparts (<img>, <video>, <audio>), or sandboxed <iframe> tags if the MIME type cannot be matched safely:\n\ntypescript\n// Pre-patch: Object and embed tags parsed directly without validation or type conversion\n// Post-patch: Nodes are dynamically transformed into safe HTML counterparts\nif (settings.convert_unsafe_embeds) {\n parser.addNodeFilter('object,embed', (nodes) => Arr.each(nodes, (node) => {\n node.replace(\n createSafeEmbed(\n node.attr('type'),\n node.name === 'object' ? node.attr('data') : node.attr('src'),\n node.attr('width'),\n node.attr('height'),\n settings.sandbox_iframes\n ));\n }));\n}\n\n\nSimilarly, if sandbox_iframes is enabled, any iframe node is parsed, and the parser forcibly appends the sandbox="" attribute. This is done via:\n\ntypescript\nif (settings.sandbox_iframes) {\n parser.addNodeFilter('iframe', (nodes) => Arr.each(nodes, (node) => node.attr('sandbox', '')));\n}\n\n\nThe integration of the sandbox="" attribute restricts the frame's execution contexts. Even if the source points to a script or a data URI, the browser blocks form submissions, script execution, popups, and forces a unique origin constraint. This successfully stops execution of client-side payloads.

Exploitation Mechanics & Attack Vectors

To execute this attack, a malicious actor must deliver a payload into the editor interface. This is typically achieved via clipboard paste operations or through data sources processed by the host application. A targeted user needs to interact with the editor, such as viewing a document that renders the input content.\n\nConsider a scenario where the application accepts markdown or pasted HTML. An attacker can construct a payload containing a script within an iframe:\n\nhtml\n<iframe src="javascript:alert(parent.document.cookie)"></iframe>\n\n\nOr they can utilize a data URI scheme inside an iframe, which runs active script content:\n\nhtml\n<iframe src="data:text/html,<script>alert(1)</script>"></iframe>\n\n\nAdditionally, legacy <object> and <embed> tags can be targeted to bypass basic string-filtering web application firewalls (WAFs):\n\nhtml\n<object data="javascript:alert(document.domain)"></object>\n\n\nWhen pasted, the browser or the editor's copy-paste handler processes the clipboard content. TinyMCE's parser parses the tags and appends them to the active editor workspace. Because the sandbox and conversion controls are absent, the browser processes the new elements and evaluates the JavaScript, executing the payload in the context of the user's active session.

Remediation & Defensive Configuration

The most effective resolution is upgrading the TinyMCE library to at least version 6.8.1. However, because version 6.x defaults the defensive options to false, the patch will remain inactive unless administrators explicitly declare the settings in their application code.\n\nTo configure the defenses in a 6.x deployment, developers must set sandbox_iframes and convert_unsafe_embeds to true during the initialization phase:\n\njavascript\ntinymce.init({\n selector: 'textarea#editor',\n sandbox_iframes: true,\n convert_unsafe_embeds: true\n});\n\n\nUpgrading to version 7.x is recommended for long-term security. TinyMCE 7.0.0 secures the editor out of the box by setting sandbox_iframes to true by default, eliminating the risk of misconfiguration.\n\nFor verification, security teams can test the active instance by executing tinymce.activeEditor.getContent() after inserting a standard <iframe> or <object>. If the mitigation is functioning, the retrieved content must contain the sandbox="" attribute on all iframe tags, and legacy tags should be converted to safe semantic elements.

Official Patches

TinyMCEOfficial patch fix commit on GitHub
TinyMCETinyMCE 6.8.1 release documentation detailing new security configurations
TinyMCETinyMCE 7.0 release notes outlining secure default updates

Fix Analysis (1)

Technical Appendix

CVSS Score
4.3/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
EPSS Probability
1.60%
Top 18% most exploited

Affected Systems

TinyMCE Rich Text Editor

Affected Versions Detail

Product
Affected Versions
Fixed Version
TinyMCE
Tiny Technologies
< 6.8.16.8.1
TinyMCE
Tiny Technologies
>= 6.8.2, < 7.0.07.0.0
AttributeDetail
CWE IDCWE-79 (Improper Neutralization of Input During Web Page Generation)
Attack VectorNetwork
CVSS v3.1 Score4.3 (Medium Severity)
EPSS Score0.01605 (Percentile: 82.11%)
Exploit StatusPoC / Code-level understanding available
CISA KEV StatusNot Listed
Ransomware AssociationNo

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1185Browser Session Hijacking
Collection
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The software does not neutralize or incorrectly neutralizes user-controlled input before it is placed in output that is used as a web page that is served to other users.

References & Sources

  • [1]NVD CVE-2024-29203 Detail
  • [2]CVE.org Authority Record
  • [3]GitHub Security Advisory GHSA-438c-3975-5x3f
  • [4]Fix Commit in GitHub Repository
  • [5]TinyMCE 6.8.1 Release Notes
  • [6]TinyMCE 7.0 Release Notes

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 9 hours ago•GHSA-X445-F3H2-J279
7.5

GHSA-X445-F3H2-J279: OAuth Provider Confusion in Auth.js and NextAuth.js

A critical logical security flaw exists in Auth.js (formerly NextAuth.js) where signed anti-CSRF check cookies (state, nonce, and PKCE code_verifier) are not bound to the specific Identity Provider that initiated the authorization flow. In multi-provider environments, this allows an attacker to replay valid, cryptographically signed cookies minted during a flow with one provider against a callback handling a different provider. This vulnerability can lead to session hijacking, identity theft, or unauthorized account linking.

Alon Barad
Alon Barad
7 views•7 min read
•about 10 hours ago•GHSA-7RQJ-J65F-68WH
8.1

GHSA-7RQJ-J65F-68WH: Account Takeover via Homoglyph Bypass in NextAuth.js Email Normalization

A security vulnerability in the email normalization logic of NextAuth.js and Auth.js allows remote attackers to bypass email validation constraints and achieve Account Takeover (ATO) through Unicode homoglyph smuggling. Under standard conditions, Unicode compatibility characters represent visually similar symbols that are normalized downstream to ASCII equivalents, facilitating structural validation bypasses. This issue specifically affects passwordless email authentication flows.

Alon Barad
Alon Barad
7 views•6 min read
•about 11 hours ago•GHSA-XMF8-CVQR-RFGJ
7.5

GHSA-XMF8-CVQR-RFGJ: Denial of Service via Uncaught Exception and Session Confusion in Auth.js

Auth.js (formerly NextAuth.js) contains a denial of service vulnerability due to an uncaught URIError in the getToken() token parser when processing malformed percent-encoded sequences in bearer tokens. Additionally, the library was vulnerable to session state confusion and replay attacks because OAuth check cookies (state, nonce, and PKCE) were not properly bound to specific providers, permitting cross-provider token reuse.

Amit Schendel
Amit Schendel
6 views•6 min read
•about 12 hours ago•CVE-2026-53467
5.3

CVE-2026-53467: Heap Information Disclosure via Uninitialized Pixel Cache in ImageMagick MNG Decoder

CVE-2026-53467 is a heap information disclosure vulnerability in the Multiple-image Network Graphics (MNG) decoder of ImageMagick. The vulnerability arises from a failure to zero-initialize newly allocated pixel cache memory buffers. A remote attacker can exploit this by submitting a crafted sparse MNG image file to trigger uninitialized memory preservation. The resulting output contains residual heap bytes, potentially leaking sensitive process memory or assisting in ASLR bypass.

Amit Schendel
Amit Schendel
7 views•6 min read
•about 13 hours ago•CVE-2026-55223
6.3

CVE-2026-55223: Remote Code Execution via Deserialization Gadget Chain in c3p0 Connection Pooling Library

An untrusted deserialization vulnerability exists in the c3p0 JDBC connection pooling library before version 0.14.0. Standard JDBC getter methods conform to the JavaBean property getter pattern, allowing introspection libraries like Apache Commons BeanUtils to evaluate connection properties dynamically during deserialization, leading to arbitrary code execution when chained with a vulnerable database driver or JNDI sink.

Alon Barad
Alon Barad
6 views•6 min read
•about 14 hours ago•CVE-2026-54696
3.7

CVE-2026-54696: Heap-based Buffer Overflow in Ruby json Gem Native C Extension

A heap-based buffer overflow vulnerability exists in the native C extension of the Ruby json gem (versions 2.9.0 through 2.19.8) during IO-based streaming serialization. An incorrect buffer size calculation can lead to memory corruption and process termination when processing large strings.

Alon Barad
Alon Barad
8 views•6 min read