CVE-2019-1010091: XSS in TinyMCE

tinymce Updated 02 Oct 2025

Summary

11/05/2020
Yes i
Moderate
Not published

CVE-2019-1010091: XSS in TinyMCE. Affects tinymce across 2 version ranges.

< 4.9.10 >= 5.0.0, < 5.2.2

Fixed in 4.9.10 or 5.2.2, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

TinyMCE is a popular open-source WYSIWYG editor used for embedding rich text editing capabilities into web applications. It allows users to easily create and edit content with a familiar word processor-like interface. However, versions 4.9.9 and lower of TinyMCE, as well as versions 5.2.1 and lower, are vulnerable to a cross-site scripting (XSS) attack. This vulnerability allows an attacker to execute arbitrary JavaScript code by inserting specially crafted content into the editor via the clipboard or APIs.

Vulnerability Detail

The XSS vulnerability in TinyMCE arises from a flaw in the core parser and the 'media' plugin. By exploiting this vulnerability, an attacker can inject malicious JavaScript code into the editor, which will be executed when the content is rendered. This can lead to various security issues, including session hijacking, data theft, and defacement of the affected web application. The vulnerability affects all users of TinyMCE versions 4.9.9 or lower and 5.2.1 or lower.

How To Fix

Latest published version: 8.10.0 as of 23 Oct 2026

npm install tinymce@8.10.0

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 4.9.10 4.9.10
    npm install tinymce@4.9.10
  • >= 5.0.0, < 5.2.2 5.2.2
    npm install tinymce@5.2.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading to the patched versions is not immediately feasible, a workaround is available. Users can disable the 'media' plugin and manually sanitize CDATA content. The following code snippet demonstrates how to strip CDATA elements manually:

setup: function(editor) {
  editor.on('PreInit', function() {
    editor.parser.addNodeFilter('#cdata', function(nodes) {
      for (var i = 0; i < nodes.length; i++) {
        nodes[i].remove();
      }
    });
  });
}

Conclusion

The XSS vulnerability in TinyMCE can have serious security implications for web applications using affected versions. It is crucial to upgrade to the patched versions or apply the provided workaround to ensure the security of the application. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for tinymce →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary JavaScript code in the context of the affected web application. This can lead to various security risks, including data theft, session hijacking, and website defacement.

TinyMCE versions 4.9.9 and lower, as well as versions 5.2.1 and lower, are affected by this XSS vulnerability.

The recommended mitigation is to upgrade to either TinyMCE version 4.9.10 or version 5.2.2. These versions include fixes for the XSS vulnerability.

Yes, if immediate upgrading is not possible, you can disable the 'media' plugin and manually sanitize CDATA content as described in the provided code snippet.

The vulnerabilities were discovered by Michał Bentkowski and intivesec. They were reported to Tiny Technologies, the maintainers of TinyMCE.

Related vulnerabilities

Recent vulnerabilities recorded for tinymce.

How To Fix

Latest published version: 8.10.0 as of 23 Oct 2026

npm install tinymce@8.10.0

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 4.9.10 4.9.10
    npm install tinymce@4.9.10
  • >= 5.0.0, < 5.2.2 5.2.2
    npm install tinymce@5.2.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback