CVE-2024-38356
JSON

6.1medium

TinyMCE Cross-Site Scripting (XSS) vulnerability using noneditable_regexp option

Severity
6.1medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.93% (higher than 59% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9hcv-j9pv-qmphPYSEC-2026-1301

Description

TinyMCE is an open source rich text editor. A cross-site scripting (XSS) vulnerability was discovered in TinyMCE’s content extraction code. When using the `noneditable_regexp` option, specially crafted HTML attributes containing malicious code were able to be executed when content was extracted from the editor. This vulnerability has been patched in TinyMCE 7.2.0, TinyMCE 6.8.4 and TinyMCE 5.11.0 LTS by ensuring that, when using the `noneditable_regexp` option, any content within an attribute is properly verified to match the configured regular expression before being added. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected

Product or packageVersionsReported by
tinymce tinymce< 5.11.0, >= 6.0.0, <6.8.4, >= 7.0.0, < 7.2.0CVE List
tinymce (npm)before 5.11.0, from 6.0.0 before 6.8.4, from 7.0.0 before 7.2.0GitHub Advisory Database
TinyMCE (NuGet)before 5.11.0, from 6.0.0 before 6.8.4, from 7.0.0 before 7.2.0GitHub Advisory Database
tinymce/tinymce (Packagist)before 5.11.0, from 6.0.0 before 6.8.4, from 7.0.0 before 7.2.0GitHub Advisory Database
django-tinymce (PyPI)before 4.1.0GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:L
PyPA Advisory Database6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:L

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

TinyMCE is an open source rich text editor. A cross-site scripting (XSS) vulnerability was discovered in TinyMCE’s content extraction code. When using the `noneditable_regexp` option, specially crafted HTML attributes containing malicious code were able to be executed when content was extracted from the editor. This vulnerability has been patched in TinyMCE 7.2.0, TinyMCE 6.8.4 and TinyMCE 5.11.0 LTS by ensuring that, when using the `noneditable_regexp` option, any content within an attribute is properly verified to match the configured regular expression before being added. Users are advised to upgrade. There are no known workarounds for this vulnerability.

GitHub Advisory Database
Impact

A cross-site scripting (XSS) vulnerability was discovered in TinyMCE’s content extraction code. When using the noneditable_regexp option, specially crafted HTML attributes containing malicious code were able to be executed when content was extracted from the editor.

Patches

This vulnerability has been patched in TinyMCE 7.2.0, TinyMCE 6.8.4 and TinyMCE 5.11.0 LTS by ensuring that, when using the noneditable_regexp option, any content within an attribute is properly verified to match the configured regular expression before being added.

Fix

To avoid this vulnerability:

  • Upgrade to TinyMCE 7.2.0 or higher.
  • Upgrade to TinyMCE 6.8.4 or higher for TinyMCE 6.x.
  • Upgrade to TinyMCE 5.11.0 LTS or higher for TinyMCE 5.x (only available as part of commercial long-term support contract).
References
For more information

If you have any questions or comments about this advisory:

NVD (es)

TinyMCE es un editor de texto enriquecido de código abierto. Se descubrió una vulnerabilidad de cross-site scripting (XSS) en el código de extracción de contenido de TinyMCE. Al utilizar la opción `noneditable_regexp`, se podían ejecutar atributos HTML especialmente manipulados que contenían código malicioso cuando se extraía el contenido del editor. Esta vulnerabilidad se ha solucionado en TinyMCE 7.2.0, TinyMCE 6.8.4 y TinyMCE 5.11.0 LTS garantizando que, al utilizar la opción `noneditable_regexp`, se verifique correctamente que cualquier contenido dentro de un atributo coincida con la expresión regular configurada antes de agregarlo. Se recomienda a los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-38356 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-9hcv-j9pv-qmph changed 2026-09-10CC-BY-4.0
NVDCVE-2024-38356 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1301 changed 2026-07-07CC-BY-4.0