Drupal core uses a vulnerable Third-party library CKEditorGHSA-337w-fxpq-5m34
MEDIUMGHSA-337w-fxpq-5m34 is a medium-severity (CVSS 4.2) vulnerability in drupal/drupal. A fix is available for drupal/drupal — see the affected versions and patch details below.
Real-World Exposure
drupal/drupal🐘drupal/drupalReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
The Drupal project uses the third-party library CKEditor, which has released a security improvement that is needed to protect some Drupal configurations.
Vulnerabilities are possible if Drupal is configured to use the WYSIWYG CKEditor for your site's users. An attacker that can create or edit content may be able to exploit this Cross Site Scripting (XSS) vulnerability to target users with access to the WYSIWYG CKEditor, and this may include site admins with privileged access.
The latest versions of Drupal update CKEditor to 4.14 to mitigate the vulnerabilities.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | drupal/drupal | ≥ 8.0.0&&< 8.7.12 | 8.7.12composer require drupal/drupal:^8.7.12 |
| 🐘Packagist | drupal/drupal | ≥ 8.8.0&&< 8.8.4 | 8.8.4composer require drupal/drupal:^8.8.4 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for drupal/drupal, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update drupal/drupal to 8.7.12 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-337w-fxpq-5m34 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.
Frequently Asked Questions
Is GHSA-337w-fxpq-5m34 in your dependencies?
Find it across Packagist, including transitive dependencies.