Cross-site scripting vulnerability in TinyMCE

tinymce Updated 02 Oct 2025

Summary

03/01/2024
MODERATE
No i
Moderate
Not published

GHSA-q5pp-5q2h-g8rv: Duplicate Advisory: Cross-site scripting vulnerability in TinyMCE. Affected versions are not published. No fix is published. 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 creating rich text content in web applications. It provides a user-friendly interface for editing and formatting text, allowing developers to integrate it seamlessly into their projects. However, versions of TinyMCE prior to 5.6.0 are susceptible to a stored cross-site scripting (XSS) vulnerability. This vulnerability allows an attacker to inject malicious HTML code into the editor, which can lead to the execution of arbitrary JavaScript code in the browser of another user.

Vulnerability Detail

The stored XSS vulnerability in TinyMCE arises due to insufficient input sanitization. When an attacker inserts crafted HTML code into the editor, it is not properly sanitized, allowing the execution of arbitrary JavaScript code. This can result in various malicious activities, such as stealing sensitive user information, performing actions on behalf of the user, or redirecting the user to malicious websites. The vulnerability can be exploited by an unauthenticated remote attacker, posing a significant risk to the security and integrity of affected applications.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If upgrading to the latest version of TinyMCE is not immediately feasible, developers can implement a workaround by manually sanitizing user input before passing it to the editor. This can be achieved by using a trusted HTML sanitization library or framework that removes or escapes any potentially malicious code. It is crucial to carefully validate and sanitize user input to prevent the execution of arbitrary JavaScript code.

Conclusion

In conclusion, TinyMCE versions prior to 5.6.0 are vulnerable to a stored XSS vulnerability that allows an attacker to execute arbitrary JavaScript code in the browser of another user. To mitigate this risk, it is essential to upgrade to the latest version of TinyMCE or implement proper input sanitization. For further assistance or support in addressing this vulnerability, please 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 browser of another user, potentially leading to various malicious activities such as data theft, unauthorized actions, or redirection to malicious websites.

Applications using versions of TinyMCE prior to 5.6.0 are affected by this vulnerability. Developers who have integrated TinyMCE into their projects should check the version they are using and take appropriate actions to mitigate the risk.

No, an unauthenticated remote attacker can exploit this vulnerability by inserting crafted HTML code into the editor.

There are no known instances of this vulnerability being actively exploited in the wild at the time of this advisory. However, it is crucial to promptly address this vulnerability to prevent potential attacks.

The recommended mitigation strategy is to upgrade to the latest version of TinyMCE (version 5.6.0 or above) or implement proper input sanitization to prevent the execution of arbitrary JavaScript code.

Related vulnerabilities

Recent vulnerabilities recorded for tinymce.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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