Vulnerability DatabaseGHSA-hr8p-3p6h-9fw3

GHSA-hr8p-3p6h-9fw3: 
JavaScript vulnerability analysis and mitigation

Summary

Stored XSS vulnerability in the TinyMCE core parser. Attackers can inject malicious scripts through an iframe src URL that contains an embedded base64 data: URI. This impacts all users. The current workaround is to set the sandbox_iframes_exclusions option to an empty array ([]).

Details

When the editor loads content, it converts base64 data: URIs in src attributes into blob: URIs. This conversion had two flaws:

  • The check that identifies a data URI was not anchored to the start of the value. A normal URL with data:<mime>;base64, anywhere in its path, such as https://www.youtube.com/data:text/html;base64,..., was treated as a data URI and its payload decoded.
  • The conversion applied to the src of every element, not only img. An iframe src could therefore be rewritten. The rewrite happened after the URL safety and sandbox_iframes checks had run. The original URL passed those checks because it was an https URL, and its host was in the default sandbox_iframes_exclusions list. The URL was then replaced with a blob: URI whose content was attacker-controlled HTML. A blob: URI inherits the origin of the page that created it, so the iframe ran script in the origin of the page hosting the editor. A variant affects editors configured with allow_svg_data_urls: true: an iframe with an SVG data: URI src was converted the same way. TinyMCE 8.11.1 fixes the vulnerability.

Proof of concept

  1. Load a affected TinyMCE version with a default configuration:
tinymce.init({ selector: 'textarea' });
  1. Set the initial content of the textarea to:
<iframe src="https://www.youtube.com/data:text/html;base64,PHNjcmlwdD5hbGVydChkb2N1bWVudC5kb21haW4pPC9zY3JpcHQ+"></iframe>
  1. When the editor initializes, the iframe src is rewritten to blob:<page origin>/... with no sandbox attribute. The script runs and the alert shows the domain of the host page. The base64 payload decodes to <script>alert(document.domain)</script>.

Impact

Stored XSS vulnerability in the TinyMCE core parser. Attackers can inject malicious scripts through an iframe src URL that contains an embedded base64 data: URI. TinyMCE converts this URL to a same-origin blob: URI after the URL and iframe sandbox checks have run, so the script runs in the origin of the page hosting the editor. Impacts all users of TinyMCE, including the default configuration. Editors configured with allow_svg_data_urls: true are also affected through iframes with an SVG data: URI src.

Workarounds

Set the sandbox_iframes_exclusions option to an empty array ([]).

tinymce.init({
  selector: 'textarea',
  sandbox_iframes_exclusions: []
});

Fix

To avoid this vulnerability: Upgrade to TinyMCE 8.11.1 or higher.

Acknowledgements

Tiny thanks David Vieira Kurz and Mike Lesniak for their help identifying this vulnerability. References TinyMCE 8.11.1


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-j7r2-xppq-m353HIGH7.5
  • JavaScript logoJavaScript
  • websocket-driver
NoYesDec 03, 2026
GHSA-hr8p-3p6h-9fw3MEDIUM6.1
  • JavaScript logoJavaScript
  • tinymce
NoYesDec 03, 2026
GHSA-4pv6-c8h9-q8v6MEDIUM4.7
  • JavaScript logoJavaScript
  • tinymce
NoYesDec 03, 2026
GHSA-4fq4-f4jg-3vmxMEDIUM4.7
  • JavaScript logoJavaScript
  • tinymce
NoYesDec 03, 2026
CVE-2026-142608NONEN/A
  • JavaScript logoJavaScript
  • mongoose
NoYesDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management