{"id":"CVE-2021-33829","aliases":["CVE-2021-33829","GHSA-rgx6-rjj4-c388","BIT-DRUPAL-2021-33829","DRUPAL-CORE-2021-003"],"related":[],"kind":"vulnerability","state":"published","title":"ckeditor4 vulnerable to cross-site scripting","summary":"A cross-site scripting (XSS) vulnerability in the HTML Data Processor in CKEditor 4 4.14.0 through 4.16.x before 4.16.1 allows remote attackers to inject executable JavaScript code through a crafted comment because --!> is mishandled.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A cross-site scripting (XSS) vulnerability in the HTML Data Processor in CKEditor 4 4.14.0 through 4.16.x before 4.16.1 allows remote attackers to inject executable JavaScript code through a crafted comment because --!> is mishandled.","source":"cvelist"},{"lang":"en","text":"A cross-site scripting (XSS) vulnerability in the HTML Data Processor in CKEditor 4 4.14.0 through 4.16.x before 4.16.1 allows remote attackers to inject executable JavaScript code through a crafted comment because `--!>` is mishandled.","format":"markdown","source":"ghsa"},{"lang":"en","text":"**Update: 2021-06-11: Added CVE-2021-33829 identifier**\n\nDrupal core uses the third-party CKEditor library. This library has an error in parsing HTML that could lead to an XSS attack. CKEditor 4.16.1 and later include the fix.\n\nUpdate: 2021-06-11: More details are available on [CKEditor's blog](https://ckeditor.com/blog/ckeditor-4.16.1-with-accessibility-enhancements/#improvements-for-comments-in-html-parser).\n\nUsers of the CKEditor library via means other than Drupal core should update their 3rd party code (e.g. the WYSIWYG module for Drupal 7). The Drupal Security Team policy is not to alert for issues affecting 3rd party libraries unless those are shipped with Drupal core. See [DRUPAL-SA-PSA-2016-004 for more details](https://www.drupal.org/psa-2016-004).\n\nThis issue is mitigated by the fact that it only affects sites with CKEditor enabled.","format":"markdown","source":"drupal"},{"lang":"es","text":"Una vulnerabilidad de tipo cross-site scripting (XSS) en el Procesador de Datos HTML en CKEditor versiones 4 4.14.0 hasta 4.16.x versiones anteriores a 4.16.1, permite a atacantes remotos inyectar código JavaScript ejecutable mediante un comentario diseñado porque -!&gt; No es manejado apropiadamente","source":"nvd"}],"published":"2021-05-26T18:33:55.000Z","modified":"2026-09-19T17:44:28.000Z","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"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.14.0","status":"affected","fixed":"4.16.1"}],"ecosystem":"npm","package":"ckeditor4","purl":"pkg:npm/ckeditor4","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.80"}],"ecosystem":"Packagist","package":"drupal/core","purl":"pkg:composer/drupal/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.9.16"}],"ecosystem":"Packagist","package":"drupal/core","purl":"pkg:composer/drupal/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"9.0.0","status":"affected","fixed":"9.0.14"}],"ecosystem":"Packagist","package":"drupal/core","purl":"pkg:composer/drupal/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"9.1.0","status":"affected","fixed":"9.1.9"}],"ecosystem":"Packagist","package":"drupal/core","purl":"pkg:composer/drupal/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.80"}],"ecosystem":"Packagist","package":"drupal/drupal","purl":"pkg:composer/drupal/drupal","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.9.16"}],"ecosystem":"Packagist","package":"drupal/drupal","purl":"pkg:composer/drupal/drupal","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"9.0.0","status":"affected","fixed":"9.0.14"}],"ecosystem":"Packagist","package":"drupal/drupal","purl":"pkg:composer/drupal/drupal","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"9.1.0","status":"affected","fixed":"9.1.9"}],"ecosystem":"Packagist","package":"drupal/drupal","purl":"pkg:composer/drupal/drupal","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.9.16"},{"type":"ecosystem","introduced":"9.0.0","status":"affected","fixed":"9.0.14"},{"type":"ecosystem","introduced":"9.1.0","status":"affected","fixed":"9.1.9"}],"ecosystem":"Packagist","package":"drupal/core","purl":"pkg:composer/drupal/core","source":"drupal"},{"ranges":[{"status":"affected","introduced":"4.14.0","fixed":"4.16.1"}],"vendor":"ckeditor","product":"ckeditor","cpe":"cpe:2.3:a:ckeditor:ckeditor:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"},{"status":"affected","version":"34"},{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"8.9.0","fixed":"8.9.16"},{"status":"affected","introduced":"9.0.0","fixed":"9.0.14"},{"status":"affected","introduced":"9.1.0","fixed":"9.1.9"}],"vendor":"drupal","product":"drupal","cpe":"cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"8.9.0","status":"affected","fixed":"8.9.16"},{"type":"semver","introduced":"9.0.0","status":"affected","fixed":"9.0.14"},{"type":"semver","introduced":"9.1.0","status":"affected","fixed":"9.1.9"}],"ecosystem":"Bitnami","package":"drupal","purl":"pkg:bitnami/drupal","source":"bitnami"}],"references":[{"url":"https://www.drupal.org/sa-core-2021-003","tags":["advisory","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","drupal","nvd","bitnami"]},{"url":"https://ckeditor.com/blog/ckeditor-4.16.1-with-accessibility-enhancements/#improvements-for-comments-in-html-parser","tags":["advisory","patch","release-notes","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NYA354LJP47KCVJMTUO77ZCX3ZK42G3T/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UVOYN2WKDPLKCNILIGEZM236ABQASLGW/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WAGNWHFIQAVCP537KFFS2A2GDG66J7XD/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/11/msg00007.html","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33829","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2021-33829.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2021-33829.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ckeditor/ckeditor4","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NYA354LJP47KCVJMTUO77ZCX3ZK42G3T","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UVOYN2WKDPLKCNILIGEZM236ABQASLGW","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WAGNWHFIQAVCP537KFFS2A2GDG66J7XD","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/package/ckeditor4","tags":["web"],"sources":["ghsa"]}],"credits":["Or Sahar"],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-33829","url":"https://www.cve.org/CVERecord?id=CVE-2021-33829","licence":"CVE Terms of Use","modified":"2024-08-03T23:58:23.102Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rgx6-rjj4-c388","url":"https://github.com/advisories/GHSA-rgx6-rjj4-c388","licence":"CC-BY-4.0","modified":"2025-12-10T23:41:06.105Z"},{"source":"drupal","name":"Drupal Security Team","id":"DRUPAL-CORE-2021-003","url":"https://osv.dev/vulnerability/DRUPAL-CORE-2021-003","licence":"MIT","modified":"2026-09-19T17:44:28.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-33829","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33829","licence":"Public domain","modified":"2026-06-17T03:55:16.897Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DRUPAL-2021-33829","url":"https://osv.dev/vulnerability/BIT-DRUPAL-2021-33829","licence":"Apache-2.0","modified":"2026-09-08T08:46:58.872Z"}],"updatedAt":"2026-11-25T22:58:01.728Z","epss":{"score":0.03189,"percentile":0.88423,"date":"2026-12-01T12:00:22.000Z"}}