CVE-2022-23494 Cross-site scripting vulnerability in TinyMCE alerts
Attackers can execute arbitrary JavaScript via malicious HTML in TinyMCE alert dialogs, affecting users of plugins like image.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-23494?
CVE-2022-23494 is a medium-severity cross-site scripting vulnerability in tinymce, published on 8 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
tinymce is an open source rich text editor. A cross-site scripting (XSS) vulnerability was discovered in the alert and confirm dialogs when these dialogs were provided with malicious HTML content. This can occur in plugins that use the alert or confirm dialogs, such as in the `image` plugin, which presents these dialogs when certain errors occur. The vulnerability allowed arbitrary JavaScript execution when an alert presented in the TinyMCE UI for the current user. This vulnerability has been patched in TinyMCE 5.10.7 and TinyMCE 6.3.1 by ensuring HTML sanitization was still performed after unwrapping invalid elements. Users are advised to upgrade to either 5.10.7 or 6.3.1. Users unable to upgrade may ensure the the `images_upload_handler` returns a valid value as per the images_upload_handler documentation.
Weakness: CWE-79
Which versions are affected by CVE-2022-23494?
12 open source packages ship an affected version, including TinyMCE, tinymce/tinymce and tinymce. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
TinyMCE NuGet | All versions | 5.10.7 |
TinyMCE NuGet | All versions | 5.10.7 |
TinyMCE NuGet | From 6.0.0 | 6.3.1 |
TinyMCE NuGet | From 6.0.0 | 6.3.1 |
tinymce/tinymce Packagist | All versions | 5.10.7 |
tinymce/tinymce Packagist | All versions | 5.10.7 |
6 more packages
tinymce/tinymce Packagist | From 6.0.0 | 6.3.1 |
tinymce/tinymce Packagist | From 6.0.0 | 6.3.1 |
tinymce npm | All versions | 5.10.7 |
tinymce npm | All versions | 5.10.7 |
tinymce npm | From 6.0.0 | 6.3.1 |
tinymce npm | From 6.0.0 | 6.3.1 |
Products include Tiny Tinymce.
How do I fix CVE-2022-23494?
Upgrade TinyMCE to a fixed version for your release line: 5.10.7 or 6.3.1.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-23494 being exploited?
There is no known exploitation of CVE-2022-23494 in the wild and no public exploit code.
Other vulnerabilities in tinymce
- CVE-2026-47759 TinyMCE Cross-Site Scripting (XSS) vulnerability using through data-mce- prefixed src, href, style attributes
- CVE-2026-47760 TinyMCE Cross-Site Scripting (XSS) vulnerability using sanitization bypass through nested SVGs
- CVE-2026-47761 TinyMCE Cross-Site Scripting (XSS) vulnerability using media plugin `data-mce-object` injection
- CVE-2026-47762 TinyMCE Cross-Site Scripting (XSS) vulnerability through `mce:protected` comments
- CVE-2024-21908 Cross-site scripting vulnerability in TinyMCE
Sources
Also known as GHSA-gg8r-xjwq-4w92, UBUNTU-CVE-2022-23494.