CVE-2020-12648: Cross-site scripting vulnerability in TinyMCE
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.17602%
CWE
Published
8/11/2020
Updated
5/22/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
tinymce | npm | < 4.9.11 | 4.9.11 |
tinymce | npm | >= 5.0.0, < 5.4.1 | 5.4.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two key issues: 1) Missing 'iframe' in the schema's special elements list (Schema.ts
), which controls whether element content is parsed as text or DOM nodes. Without this, malicious iframe content wasn't sanitized. 2) Incorrect whitespace element handling in parser filters (ParserFilters.ts
), which affected parsing context validation. The commit explicitly addresses both by adding 'iframe' to special elements and correcting the schema method call, as shown in the test cases validating XSS prevention.