ckeditor4 vulnerable to cross-site scriptingGHSA-rgx6-rjj4-c388
MEDIUMGHSA-rgx6-rjj4-c388 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.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
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 GHSA-rgx6-rjj4-c388 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 GHSA-rgx6-rjj4-c388
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id ghsa-rgx6-rjj4-c388 -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.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Frequently Asked Questions
Is GHSA-rgx6-rjj4-c388 in your dependencies?
Find it across npm, Packagist, including transitive dependencies.