6.1medium
Cross-site scripting vulnerability in TinyMCE
- Severity
- 6.1medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.80% (higher than 79% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-vrv8-v4w8-f95h
Description
A cross-site scripting (XSS) vulnerability in TinyMCE 5.2.1 and earlier allows remote attackers to inject arbitrary web script when configured in classic editing mode.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| tinymce (npm) | before 4.9.11, from 5.0.0 before 5.4.1 | GitHub Advisory Database |
| tiny tinymce | before 4.9.11, from 5.0.0 before 5.4.1 | NVD |
All scores
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
A cross-site scripting (XSS) vulnerability in TinyMCE 5.2.1 and earlier allows remote attackers to inject arbitrary web script when configured in classic editing mode.
GitHub Advisory Database
Impact
A cross-site scripting (XSS) vulnerability was discovered in the core parser. The vulnerability allowed arbitrary JavaScript execution when inserting a specially crafted piece of content into the editor via the clipboard or APIs. This impacts all users who are using TinyMCE 4.9.10 or lower and TinyMCE 5.4.0 or lower.
Patches
This vulnerability has been patched in TinyMCE 4.9.11 and 5.4.1 by improved HTML parsing and sanitization logic.
Workarounds
The workarounds available are:
- upgrade to either TinyMCE 4.9.11 or TinyMCE 5.4.1 or
- enable the media plugin, which overrides the default parsing behaviour for iframes or
- add the following workaround to update the parsing schema rules for iframes:
Example: Change the default schema for iframes
setup: function(editor) {
editor.on('PreInit', function() {
editor.schema.getSpecialElements()['iframe'] = /</iframe[^>]*>/gi;
});
}
Acknowledgements
Tiny Technologies would like to thank George Steketee and Chris Davis at Bishop Fox for discovering this vulnerability.
References
https://www.tiny.cloud/docs/release-notes/release-notes54/#securityfixes
For more information
If you have any questions or comments about this advisory:
- Open an issue in the TinyMCE repo
- Email us at infosec@tiny.cloud
NVD (es)
Una vulnerabilidad de tipo cross-site scripting (XSS) en TinyMCE versiones 5.2.1 y anteriores, permite a atacantes remotos inyectar script web arbitrario cuando se configuraba en el modo de edición clásica.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-12648 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vrv8-v4w8-f95h changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2020-12648 changed 2026-06-17 | Public domain |