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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| ckeditor4 (npm) | from 4.14.0 before 4.16.1 | GitHub 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.9 | GitHub 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.9 | GitHub Advisory Database |
| ckeditor ckeditor | from 4.14.0 before 4.16.1 | NVD |
| fedoraproject fedora | 33, 34, 35 | NVD |
| drupal drupal | from 8.9.0 before 8.9.16, from 9.0.0 before 9.0.14, from 9.1.0 before 9.1.9 | NVD |
| debian debian_linux | 9.0 | NVD |
| 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.9 | Bitnami Vulnerability Database |
All scores
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| Bitnami Vulnerability Database | medium 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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-33829 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rgx6-rjj4-c388 changed 2025-12-10 | CC-BY-4.0 |
| Drupal Security Team | DRUPAL-CORE-2021-003 changed 2026-09-19 | MIT |
| NVD | CVE-2021-33829 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-DRUPAL-2021-33829 changed 2026-09-08 | Apache-2.0 |