CVE-2022-23494: Cross-site scripting vulnerability in TinyMCE alerts

tinymce Updated 02 Oct 2025

Summary

08/12/2022
Yes i
Moderate
5.4

CVE-2022-23494: Cross-site scripting vulnerability in TinyMCE alerts. Affects tinymce across 2 version ranges.

< 5.10.7 >= 6.0.0, < 6.3.1

Fixed in 5.10.7 or 6.3.1, 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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, including features like image uploading. However, a vulnerability has been discovered in TinyMCE that allows for cross-site scripting (XSS) attacks. This vulnerability specifically affects the alert and confirm dialogs in plugins that use them, such as the image plugin. When these dialogs are provided with malicious HTML content, arbitrary JavaScript can be executed in the context of the current user's session, potentially leading to unauthorized actions or data theft.

Vulnerability Detail

The XSS vulnerability in TinyMCE's alert and confirm dialogs arises from a lack of proper HTML sanitization. When these dialogs are presented with malicious HTML content, the injected JavaScript code can execute within the TinyMCE UI, posing a risk to the user's session. This vulnerability has a CVSS score of 5.4, indicating a moderate severity level. Exploiting this vulnerability could lead to unauthorized access, data manipulation, or phishing attacks.

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.

  • < 5.10.7 5.10.7
    npm install tinymce@5.10.7
  • >= 6.0.0, < 6.3.1 6.3.1
    npm install tinymce@6.3.1

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

Workaround

As a temporary workaround, developers can ensure that the images_upload_handler returns a valid value as per the images_upload_handler documentation. This can help reduce the impact of the vulnerability until the software is updated to the patched versions.

Conclusion

The cross-site scripting vulnerability in TinyMCE's alert and confirm dialogs can be mitigated by upgrading to the latest patched versions. It is important to promptly apply these updates to ensure the security of your web application. If you have any further questions or need assistance with vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for tinymce →

Share this vulnerability

FAQ

TinyMCE is an open-source WYSIWYG editor used for creating rich text content in web applications. It provides a user-friendly interface for editing and formatting text, including features like image uploading.

The vulnerability allows for cross-site scripting (XSS) attacks in TinyMCE's alert and confirm dialogs. Exploiting this vulnerability could lead to unauthorized access, data manipulation, or phishing attacks.

To fix this vulnerability, upgrade to the latest patched versions of TinyMCE (5.10.7 or higher for TinyMCE 5.x, and 6.3.1 or higher for TinyMCE 6.x). These versions include proper HTML sanitization to prevent the execution of arbitrary JavaScript code.

Yes, as a temporary workaround, developers can ensure that the images_upload_handler returns a valid value as per the images_upload_handler documentation. This can help reduce the impact of the vulnerability until the software is updated.

For more information, you can refer to the TinyMCE release notes for the patched versions (5.10.7 and 6.3.1) and the GitHub advisory database.

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.

  • < 5.10.7 5.10.7
    npm install tinymce@5.10.7
  • >= 6.0.0, < 6.3.1 6.3.1
    npm install tinymce@6.3.1

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