CVEfocus › CVE database › CVE-2022-23494

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

CVSS 5.4 MediumEPSS 1.2% (higher than 67% of CVEs)Published 2022-12-08Updated 2025-04-23Assigner: GitHub_M

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.

CWE-79

What to do

Fixed builds are available from Packagist, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
4Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04tinymceFix pendingUBUNTU-CVE-2022-23494
Ubuntu 18.04tinymceFix pendingUBUNTU-CVE-2022-23494
Ubuntu 16.04tinymceFix pendingUBUNTU-CVE-2022-23494
Ubuntu 14.04tinymceFix pending
npm librarytinymceFixed6.3.1GHSA-gg8r-xjwq-4w92
Packagist librarytinymce/tinymceFixed5.10.7GHSA-gg8r-xjwq-4w92

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.