TinyMCE Cross-Site Scripting (XSS) vulnerability using through data-mce- prefixed src, href, style attributes
tinymce
tinymce
≥ 8.0.0 · < 8.5.1
|
| tinymce/tinymce Packagist |
|
|
TinyMCE is an open source rich text editor. Prior to 5.11.1, 7.9.3, and 8.5.1, there is a stored XSS vulnerability via unsanitized data-mce-* attributes (data-mce-href, data-mce-src, data-mce-style). Allows attackers to inject malicious values that override safe attributes during serialization, bypassing validation. This vulnerability is fixed in 5.11.1, 7.9.3, and 8.5.1.
From the CVE record · GitHub_M
TinyMCE does not sanitize certain data-mce-* attributes before serialization. An attacker who can inject malicious attribute values can override safe attributes, bypass validation, and cause stored cross-site scripting. The input does not specify whether authentication or user interaction is required.
Teams using the npm tinymce, NuGet TinyMCE, or Packagist tinymce/tinymce packages should check versions <=5.10.9, >=6.0.0 <7.9.3, and >=8.0.0 <8.5.1.