SA-CONTRIB-2026-353: CSRF
The CKEditor Premium Features module provides Drupal editor integration for the official CKEditor 5 Premium plugins. It includes an Import from Word sub-module as well as support for Drupal core media. The Import from Word feature is not protected against cross-site request forgery (CSRF). An attacker could trick a user who has permission to create media into creating malicious files without their knowledge. This vulnerability is mitigated by the fact that Import from Word sub-module must be enabled, with its Enable uploading images as a Drupal Media option turned on for at least one text format. This option is disabled by default.
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/ckeditor5_premium_featuresto a version that resolves this vulnerability.Fixed in 1.8.8 - Configuration
Keep “Enable uploading images as a Drupal Media” disabled for text formats.
CKEditor Premium Features — Import from Word sub-module Enable uploading images as a Drupal Media = disabled
Event History
Frequently Asked Questions
Which sites are exposed to this issue?
A site is exposed only if the Import from Word sub-module is enabled and the “Enable uploading images as a Drupal Media” option is enabled for at least one text format. That option is disabled by default.
What does an attacker need to exploit the issue?
The attacker must be able to trick a user who has permission to create media into making a request. Successful exploitation can cause malicious files to be created without that user’s knowledge.
What can be done if patching is not immediately possible?
Disable the Import from Word sub-module, or disable “Enable uploading images as a Drupal Media” for every text format. Either condition prevents the described exposure.