ghsa-vrv8-v4w8-f95h
Vulnerability from github
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
js
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
{ "affected": [ { "package": { "ecosystem": "npm", "name": "tinymce" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "4.9.11" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "npm", "name": "tinymce" }, "ranges": [ { "events": [ { "introduced": "5.0.0" }, { "fixed": "5.4.1" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2020-12648" ], "database_specific": { "cwe_ids": [ "CWE-79" ], "github_reviewed": true, "github_reviewed_at": "2020-08-10T22:39:05Z", "nvd_published_at": "2020-08-14T14:15:00Z", "severity": "MODERATE" }, "details": "### 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(\u0027PreInit\u0027, function() {\n editor.schema.getSpecialElements()[\u0027iframe\u0027] = /\u003c/iframe[^\u003e]*\u003e/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)", "id": "GHSA-vrv8-v4w8-f95h", "modified": "2023-05-22T14:51:38Z", "published": "2020-08-11T14:55:01Z", "references": [ { "type": "WEB", "url": "https://github.com/tinymce/tinymce/security/advisories/GHSA-vrv8-v4w8-f95h" }, { "type": "WEB", "url": "https://github.com/tinymce/tinymce/pull/5843" }, { "type": "WEB", "url": "https://github.com/tinymce/tinymce/commit/2b71c922214d388838d930806207a66c14e80f63" }, { "type": "WEB", "url": "https://github.com/tinymce/tinymce/commit/696e43658dc9750ec24fdc4650bd2be9653daf5b" }, { "type": "PACKAGE", "url": "https://github.com/tinymce/tinymce" }, { "type": "WEB", "url": "https://www.tiny.cloud/docs/release-notes/release-notes54/#securityfixes" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "type": "CVSS_V3" } ], "summary": "Cross-site scripting vulnerability in TinyMCE" }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.