Cross-site scripting vulnerability in TinyMCE

tinymce Updated 02 Oct 2025

Summary

06/05/2021
MODERATE
Yes i
Moderate
6.1

GHSA-p7j5-4mwm-hv86: Duplicate Advisory: Cross-site scripting in TinyMCE. Affects tinymce across 2 version ranges.

< 4.9.7 >= 5.0.0, < 5.1.4

Fixed in 4.9.7 or 5.1.4, 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

TinyMCE is a popular open-source WYSIWYG editor used for creating rich text content in web applications. It provides a user-friendly interface for editing and formatting text. However, a cross-site scripting (XSS) vulnerability has been discovered in versions before 4.9.7 and 5.x before 5.1.4 of TinyMCE. This vulnerability allows an attacker to inject malicious code into the editor, potentially leading to unauthorized access, data theft, or other malicious activities.

Vulnerability Detail

The XSS vulnerability in TinyMCE is present in the core parser, the paste plugin, and the visualchars plugin. It can be exploited by using the clipboard or APIs to insert content into the editor. This allows an attacker to execute arbitrary JavaScript code in the context of the user's browser, leading to potential security breaches. The vulnerability has a CVSS score of 6.1, indicating a moderate severity level.

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.7 4.9.7
    npm install tinymce@4.9.7
  • >= 5.0.0, < 5.1.4 5.1.4
    npm install tinymce@5.1.4

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

Workaround

If updating TinyMCE is not immediately feasible, a temporary workaround is to disable the clipboard and paste plugins, as well as the visualchars plugin. This can be achieved by modifying the TinyMCE configuration to exclude these plugins. However, this workaround may limit certain functionality provided by these plugins.

Conclusion

The XSS vulnerability in TinyMCE poses a potential security risk to web applications using affected versions. It is crucial to update to the latest secure version of TinyMCE to mitigate this vulnerability. If immediate updating is not possible, disabling the affected plugins can serve as a temporary workaround. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tinymce →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute malicious code in the user's browser, potentially leading to unauthorized access, data theft, or other malicious activities.

No, only versions before 4.9.7 and 5.x before 5.1.4 are affected. Updating to the latest secure version mitigates the vulnerability.

There are no known public exploits for this vulnerability at the moment. However, it is advisable to patch the vulnerability as soon as possible to prevent any potential exploitation.

Yes, this vulnerability can be exploited remotely by an attacker who can trick a user into visiting a specially crafted website or clicking on a malicious link.

Yes, the CVSS score for this vulnerability is 6.1, indicating a moderate severity level.

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.7 4.9.7
    npm install tinymce@4.9.7
  • >= 5.0.0, < 5.1.4 5.1.4
    npm install tinymce@5.1.4

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