CVE-2024-21911
JavaScript vulnerability analysis and mitigation

Overview

TinyMCE versions before 5.6.0 are affected by a stored cross-site scripting (XSS) vulnerability (CVE-2024-21911). The vulnerability was discovered in the URL sanitization logic of the core parser and was disclosed on January 3, 2024. The issue affects the TinyMCE rich text editor, which is widely used with over 350M+ downloads annually (NPM Package).

Technical details

The vulnerability exists in the URL sanitization logic of the core parser, where an unauthenticated and remote attacker could insert crafted HTML into the editor resulting in arbitrary JavaScript execution in another user's browser. The vulnerability has been assigned a CVSS v3.1 base score of 6.1 (Medium) with the vector string: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. The issue is classified as CWE-79: Improper Neutralization of Input During Web Page Generation (NVD).

Impact

The vulnerability allows arbitrary JavaScript execution when inserting a specially crafted piece of content into the editor using the clipboard or APIs. This impacts all users who are using TinyMCE 5.5.1 or lower, potentially affecting millions of products worldwide that rely on TinyMCE for rich text editing capabilities (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in TinyMCE 5.6.0 through improved URL sanitization logic. For users unable to upgrade immediately, there are two workaround options: 1) Manually sanitize iframe, object and embed URL attributes using a TinyMCE node filter, or 2) Disable iframe, object, and embed elements in the content using the invalid_elements setting (Tiny Docs).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.5
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH7.5
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2026-22028HIGH7.2
  • JavaScriptJavaScript
  • preact
NoYesJan 07, 2026
CVE-2025-9611HIGH7.2
  • JavaScriptJavaScript
  • @playwright/mcp
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management