CVE-2020-12648
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
tinymce (npm)before 4.9.11, from 5.0.0 before 5.4.1GitHub Advisory Database
tiny tinymcebefore 4.9.11, from 5.0.0 before 5.4.1NVD

All scores

GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV: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:

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

SourceRecordLicence
CVE ListCVE-2020-12648 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-vrv8-v4w8-f95h changed 2023-11-08CC-BY-4.0
NVDCVE-2020-12648 changed 2026-06-17Public domain