{"id":"CVE-2020-12648","aliases":["CVE-2020-12648","GHSA-vrv8-v4w8-f95h"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site scripting vulnerability in TinyMCE","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA 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.\n\n### Patches\nThis vulnerability has been patched in TinyMCE 4.9.11 and 5.4.1 by improved HTML parsing and sanitization logic.\n\n### Workarounds\nThe workarounds available are:\n- upgrade to either TinyMCE 4.9.11 or TinyMCE 5.4.1\nor\n- enable the media plugin, which overrides the default parsing behaviour for iframes\nor\n- add the following workaround to update the parsing schema rules for iframes:\n\n#### Example: Change the default schema for iframes\n```js\nsetup: function(editor) {\n  editor.on('PreInit', function() {\n    editor.schema.getSpecialElements()['iframe'] = /</iframe[^>]*>/gi;\n  });\n}\n```\n\n### Acknowledgements\nTiny Technologies would like to thank George Steketee and Chris Davis at [Bishop Fox](https://www.bishopfox.com/) for discovering this vulnerability.\n\n### References\nhttps://www.tiny.cloud/docs/release-notes/release-notes54/#securityfixes\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in the [TinyMCE repo](https://github.com/tinymce/tinymce/issues)\n* Email us at [infosec@tiny.cloud](mailto:infosec@tiny.cloud)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2020-08-11T14:55:01.000Z","modified":"2026-06-17T02:52:04.203Z","severity":{"scorer":"NVD","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","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":"NVD","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":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.9.11"}],"ecosystem":"npm","package":"tinymce","purl":"pkg:npm/tinymce","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.4.1"}],"ecosystem":"npm","package":"tinymce","purl":"pkg:npm/tinymce","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.9.11"},{"status":"affected","introduced":"5.0.0","fixed":"5.4.1"}],"vendor":"tiny","product":"tinymce","cpe":"cpe:2.3:a:tiny:tinymce:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://labs.bishopfox.com/advisories/tinymce-version-5.2.1","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/tinymce/tinymce/security/advisories/GHSA-vrv8-v4w8-f95h","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tinymce/tinymce/pull/5843","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tinymce/tinymce/commit/2b71c922214d388838d930806207a66c14e80f63","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tinymce/tinymce/commit/696e43658dc9750ec24fdc4650bd2be9653daf5b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tinymce/tinymce","tags":["package"],"sources":["ghsa"]},{"url":"https://www.tiny.cloud/docs/release-notes/release-notes54/#securityfixes","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-12648","url":"https://www.cve.org/CVERecord?id=CVE-2020-12648","licence":"CVE Terms of Use","modified":"2024-08-04T12:04:22.848Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vrv8-v4w8-f95h","url":"https://github.com/advisories/GHSA-vrv8-v4w8-f95h","licence":"CC-BY-4.0","modified":"2023-11-08T04:02:10.978Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-12648","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-12648","licence":"Public domain","modified":"2026-06-17T02:52:04.203Z"}],"updatedAt":"2026-11-25T22:57:54.184Z","epss":{"score":0.01803,"percentile":0.79095,"date":"2026-11-30T12:00:22.000Z"}}