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·19 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

•1 day ago•CVE-2026-54068
5.9

CVE-2026-54068: Unauthenticated Server-Side Template Injection and SQLite Exfiltration in SiYuan PKM

An authentication bypass in the SiYuan personal knowledge management system before version 3.7.0 exposes a dynamic icon rendering endpoint. This endpoint processes client-supplied Go template directives. By submitting a crafted request, an unauthenticated remote attacker can leverage registered database template functions to execute arbitrary read-only SQL queries and exfiltrate workspace contents.

Amit Schendel
Amit Schendel
12 views•5 min read
•2 days ago•CVE-2026-54069
9.1

CVE-2026-54069: Authentication Bypass in SiYuan Note via Origin Header Spoofing

CVE-2026-54069 is a critical authentication bypass vulnerability in the SiYuan Note personal knowledge management system. The flaw is located in the HTTP server's middleware handling API authorization, which unconditionally trusts requests carrying a 'chrome-extension://' scheme in the Origin HTTP header, granting administrative access without validating API tokens.

Alon Barad
Alon Barad
10 views•5 min read
•2 days ago•CVE-2026-54089
9.1

CVE-2026-54089: Authentication Bypass by Spoofing in File Browser

CVE-2026-54089 is a critical authentication bypass vulnerability in File Browser affecting instances configured with proxy-based authentication. An unauthenticated remote attacker with direct network access can impersonate arbitrary users or register new accounts by spoofing configured HTTP headers.

Amit Schendel
Amit Schendel
8 views•7 min read
•2 days ago•GHSA-99J7-FHR2-XFJ4
10.0

GHSA-99J7-FHR2-XFJ4: Malicious Remote Code Execution Payload in 'exploration' Cargo Crate

The malicious Cargo package 'exploration' was uploaded to the crates.io registry. During compilation or package import, the crate executes code designed to establish an outbound TCP/HTTP connection, download an external second-stage binary, and execute the binary locally on the host machine. This creates an unauthenticated remote code execution vector impacting developer environments and continuous integration pipelines.

Amit Schendel
Amit Schendel
11 views•6 min read
•2 days ago•CVE-2026-54088
9.3

CVE-2026-54088: Pre-Authentication Remote Code Execution in File Browser Hook Authentication

CVE-2026-54088 is a critical command injection vulnerability in File Browser prior to version 2.63.6. When Hook Authentication is enabled, the application interpolates unsanitized credentials into a shell command, allowing unauthenticated remote code execution.

Alon Barad
Alon Barad
9 views•6 min read
•2 days ago•GHSA-QV4M-M73M-8HJ7
8.8

GHSA-qv4m-m73m-8hj7: Authenticated Arbitrary File Upload leading to Remote Code Execution in NotrinosERP

An authenticated remote code execution vulnerability exists in NotrinosERP (versions up to and including 1.0.0) within the Human Resource Management (HRM) module. Users with employee management permissions can upload arbitrary file types, including PHP scripts, which are written directly to a web-accessible directory. This allows for arbitrary code execution in the context of the web-server user.

Alon Barad
Alon Barad
8 views•6 min read