CVE-2021-33829
JSON

6.1medium

ckeditor4 vulnerable to cross-site scripting

Severity
6.1medium CVSS:3.1 by NVD
Exploit likelihood
3.19% (higher than 88% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-rgx6-rjj4-c388BIT-DRUPAL-2021-33829DRUPAL-CORE-2021-003

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
ckeditor4 (npm)from 4.14.0 before 4.16.1GitHub Advisory Database
drupal/core (Packagist)from 7.0.0 before 7.80, from 8.0.0 before 8.9.16, from 9.0.0 before 9.0.14, from 9.1.0 before 9.1.9GitHub Advisory Database, Drupal Security Team
drupal/drupal (Packagist)from 7.0.0 before 7.80, from 8.0.0 before 8.9.16, from 9.0.0 before 9.0.14, from 9.1.0 before 9.1.9GitHub Advisory Database
ckeditor ckeditorfrom 4.14.0 before 4.16.1NVD
fedoraproject fedora33, 34, 35NVD
drupal drupalfrom 8.9.0 before 8.9.16, from 9.0.0 before 9.0.14, from 9.1.0 before 9.1.9NVD
debian debian_linux9.0NVD
drupal (Bitnami)from 8.9.0 before 8.9.16, from 9.0.0 before 9.0.14, from 9.1.0 before 9.1.9Bitnami Vulnerability Database

All scores

GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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.

Drupal Security Team

Update: 2021-06-11: Added CVE-2021-33829 identifier

Drupal 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.

Update: 2021-06-11: More details are available on CKEditor's blog.

Users 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.

This issue is mitigated by the fact that it only affects sites with CKEditor enabled.

NVD (es)

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 -!> No es manejado apropiadamente

References

https://www.drupal.org/sa-core-2021-003advisory, patch, third-party-advisory, web
https://ckeditor.com/blog/ckeditor-4.16.1-with-accessibility-enhancements/#improvements-for-comments-in-html-parseradvisory, patch, release-notes, vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NYA354LJP47KCVJMTUO77ZCX3ZK42G3T/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UVOYN2WKDPLKCNILIGEZM236ABQASLGW/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WAGNWHFIQAVCP537KFFS2A2GDG66J7XD/vendor-advisory, web
https://lists.debian.org/debian-lts-announce/2021/11/msg00007.htmladvisory, mailing-list, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-33829advisory, web
https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2021-33829.yamlweb
https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2021-33829.yamlweb
https://github.com/ckeditor/ckeditor4package
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NYA354LJP47KCVJMTUO77ZCX3ZK42G3Tweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UVOYN2WKDPLKCNILIGEZM236ABQASLGWweb

Sources

SourceRecordLicence
CVE ListCVE-2021-33829 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-rgx6-rjj4-c388 changed 2025-12-10CC-BY-4.0
Drupal Security TeamDRUPAL-CORE-2021-003 changed 2026-09-19MIT
NVDCVE-2021-33829 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-DRUPAL-2021-33829 changed 2026-09-08Apache-2.0