{"id":"CVE-2024-38356","aliases":["CVE-2024-38356","GHSA-9hcv-j9pv-qmph","PYSEC-2026-1301"],"related":[],"kind":"vulnerability","state":"published","title":"TinyMCE Cross-Site Scripting (XSS) vulnerability using noneditable_regexp option","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA [cross-site scripting (XSS)](https://owasp.org/www-community/attacks/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.\n\n### Patches\nThis 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.\n\n### Fix\nTo avoid this vulnerability:\n\n* Upgrade to TinyMCE 7.2.0 or higher.\n* Upgrade to TinyMCE 6.8.4 or higher for TinyMCE 6.x.\n* Upgrade to TinyMCE 5.11.0 LTS or higher for TinyMCE 5.x (only available as part of commercial [long-term support](https://www.tiny.cloud/long-term-support/) contract).\n\n### References\n* [TinyMCE 6.8.4](https://www.tiny.cloud/docs/tinymce/6/6.8.4-release-notes/#overview)\n* [TinyMCE 7.2.0](https://www.tiny.cloud/docs/tinymce/7/7.2-release-notes/#overview)\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n* Email us at [infosec@tiny.cloud](mailto:infosec@tiny.cloud)\n* Open an issue in the [TinyMCE repo](https://github.com/tinymce/tinymce/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-06-19T15:07:08.000Z","modified":"2026-09-10T03:50:16.204Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:L","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:L"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 5.11.0","status":"affected"},{"version":">= 6.0.0, <6.8.4","status":"affected"},{"version":">= 7.0.0, < 7.2.0","status":"affected"}],"vendor":"tinymce","product":"tinymce","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.11.0"}],"ecosystem":"npm","package":"tinymce","purl":"pkg:npm/tinymce","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.11.0"}],"ecosystem":"NuGet","package":"TinyMCE","purl":"pkg:nuget/TinyMCE","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.11.0"}],"ecosystem":"Packagist","package":"tinymce/tinymce","purl":"pkg:composer/tinymce/tinymce","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.8.4"}],"ecosystem":"npm","package":"tinymce","purl":"pkg:npm/tinymce","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.2.0"}],"ecosystem":"npm","package":"tinymce","purl":"pkg:npm/tinymce","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.8.4"}],"ecosystem":"NuGet","package":"TinyMCE","purl":"pkg:nuget/TinyMCE","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.2.0"}],"ecosystem":"NuGet","package":"TinyMCE","purl":"pkg:nuget/TinyMCE","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.8.4"}],"ecosystem":"Packagist","package":"tinymce/tinymce","purl":"pkg:composer/tinymce/tinymce","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.2.0"}],"ecosystem":"Packagist","package":"tinymce/tinymce","purl":"pkg:composer/tinymce/tinymce","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.1.0"}],"ecosystem":"PyPI","package":"django-tinymce","purl":"pkg:pypi/django-tinymce","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.1.0"}],"ecosystem":"PyPI","package":"django-tinymce","purl":"pkg:pypi/django-tinymce","source":"pysec"}],"references":[{"url":"https://github.com/tinymce/tinymce/security/advisories/GHSA-9hcv-j9pv-qmph","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/tinymce/tinymce/commit/5acb741665a98e83d62b91713c800abbff43b00d","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://owasp.org/www-community/attacks/xss","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.tiny.cloud/docs/tinymce/6/6.8.4-release-notes/#overview","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.tiny.cloud/docs/tinymce/7/7.2-release-notes/#overview","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38356","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/tinymce/tinymce/commit/a9fb858509f86dacfa8b01cfd34653b408983ac0","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/tinymce/tinymce","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://www.tiny.cloud/docs/tinymce/latest/7.2-release-notes/#overview","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/django-tinymce","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-9hcv-j9pv-qmph","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-20T16:29:07.834Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38356","url":"https://www.cve.org/CVERecord?id=CVE-2024-38356","licence":"CVE Terms of Use","modified":"2024-08-02T04:04:25.245Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9hcv-j9pv-qmph","url":"https://github.com/advisories/GHSA-9hcv-j9pv-qmph","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:16.204Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38356","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38356","licence":"Public domain","modified":"2026-06-17T07:39:59.097Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1301","url":"https://osv.dev/vulnerability/PYSEC-2026-1301","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:38.036Z"}],"updatedAt":"2026-11-25T22:58:42.054Z","epss":{"score":0.00929,"percentile":0.58906,"date":"2026-11-30T12:00:22.000Z"}}