CVE-2021-33829 — ckeditor4
MEDIUMCVE-2021-33829 is a medium-severity (CVSS 6.1) Cross-site Scripting (XSS) vulnerability in ckeditor4. A fix is available for ckeditor4 — see the affected versions and patch details below.
ckeditor4 vulnerable to cross-site scripting
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2021-33829 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,738 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
ckeditor4npmDescription
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | ckeditor4 | ≥ 4.14.0&&< 4.16.1 | 4.16.1npm install ckeditor4@4.16.1 |
| 🐘Packagist | drupal/core | ≥ 7.0.0&&< 7.80 | 7.80composer require drupal/core:^7.80 |
| 🐘Packagist | drupal/core | ≥ 8.0.0&&< 8.9.16 | 8.9.16composer require drupal/core:^8.9.16 |
| 🐘Packagist | drupal/core | ≥ 9.0.0&&< 9.0.14 | 9.0.14composer require drupal/core:^9.0.14 |
| 🐘Packagist | drupal/core | ≥ 9.1.0&&< 9.1.9 | 9.1.9composer require drupal/core:^9.1.9 |
| 🐘Packagist | drupal/drupal | ≥ 7.0.0&&< 7.80 | 7.80composer require drupal/drupal:^7.80 |
Affected Products
ckeditorckeditordebian linuxdebiandrupaldrupalfedorafedoraprojectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for ckeditor4, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update ckeditor4 to 4.16.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-33829 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
How to detect CVE-2021-33829
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2021-33829 -u https://target- Template
- Drupal 7 CKEditor XSS
- Severity
- medium
- Impact
- Attackers can execute arbitrary JavaScript in the context of the victim's browser, leading to session hijacking or malicious actions.
- Remediation
- Update to version 4.16.1 or later.
Template by ProjectDiscovery nuclei-templates (0x_Akoko), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2021-33829 in your dependencies?
Find it across npm, Packagist, including transitive dependencies.