{"id":"CVE-2022-23494","published":"2022-12-08T21:29:26Z","modified":"2025-04-23T16:30:57Z","title":"Cross-site scripting vulnerability in TinyMCE alerts","vendor":"tinymce","product":"tinymce","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01051,"percentile":0.65094,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/tinymce/tinymce/security/advisories/GHSA-gg8r-xjwq-4w92","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tinymce/tinymce/commit/6923d85eba6de3e08ebc9c5a387b5abdaa21150e","tags":["x_refsource_MISC"]},{"url":"https://github.com/tinymce/tinymce/commit/8bb2d2646d4e1a718fce61a775fa22e9d317b32d","tags":["x_refsource_MISC"]},{"url":"https://www.tiny.cloud/docs/release-notes/release-notes5107/#securityfixes","tags":["x_refsource_MISC"]},{"url":"https://www.tiny.cloud/docs/tinymce/6/6.3-release-notes/#security-fixes","tags":["x_refsource_MISC"]},{"url":"https://www.tiny.cloud/docs/tinymce/6/file-image-upload/#images_upload_handler","tags":["x_refsource_MISC"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":13.02},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"tinymce","affectedVersions":[{"vendor":"tinymce","product":"tinymce","versions":["< 5.10.7",">= 6.0.0, < 6.3.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T13:52:50.762280Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tinymce","vulnerableRanges":[">=6.0.0, <6.3.1","<5.10.7"],"patched":["6.3.1","5.10.7"],"from":["GHSA-gg8r-xjwq-4w92"],"provenance":"source"},{"ecosystem":"Packagist","package":"tinymce/tinymce","vulnerableRanges":[">=6.0.0, <6.3.1","<5.10.7"],"patched":["6.3.1","5.10.7"],"from":["GHSA-gg8r-xjwq-4w92"],"provenance":"source"},{"ecosystem":"NuGet","package":"TinyMCE","vulnerableRanges":[">=6.0.0, <6.3.1","<5.10.7"],"patched":["6.3.1","5.10.7"],"from":["GHSA-gg8r-xjwq-4w92"],"provenance":"source"}],"summary":{"text":"A cross-site scripting flaw in TinyMCE's rich text editor lets malicious HTML reach the alert and confirm dialogs, which plugins such as the image plugin use when errors occur. An attacker with low-privileged access to the editor, who can get a user to interact with the page, can run arbitrary JavaScript in that user's session, and the attack needs a network connection and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:01Z"},"euvd":{"id":"EUVD-2022-7631","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-21911","published":"2024-01-03","fixed":"5.6.0","kev":false},{"cve":"CVE-2024-21908","published":"2024-01-03","fixed":"5.9.0","kev":false},{"cve":"CVE-2024-21910","published":"2024-01-03","fixed":"5.10.0","kev":false},{"cve":"CVE-2022-23494","published":"2022-12-08","fixed":"6.3.1","kev":false},{"cve":"CVE-2023-45818","published":"2023-10-19","fixed":"6.7.1","kev":false,"link":{"from":"CVE-2022-23494","to":"CVE-2023-45818","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tinymce","fromFixed":"6.3.1","toFixed":"6.7.1","daysApart":315},{"kind":"version-step","provenance":"source","package":"npm:tinymce","fromFixed":"5.10.7","toFixed":"5.10.8","daysApart":315}]}},{"cve":"CVE-2023-45819","published":"2023-10-19","fixed":"6.7.1","kev":false,"link":{"from":"CVE-2022-23494","to":"CVE-2023-45819","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tinymce","fromFixed":"6.3.1","toFixed":"6.7.1","daysApart":315},{"kind":"version-step","provenance":"source","package":"npm:tinymce","fromFixed":"5.10.7","toFixed":"5.10.8","daysApart":315}]}},{"cve":"CVE-2023-48219","published":"2023-11-15","fixed":"6.7.3","kev":false}],"package":"npm:tinymce"}}