SA-CONTRIB-2026-377: XSS
SDC Embed adds a CKEditor 5 toolbar button for embedding Single Directory Components (SDC) from the active theme. These are embedded directly into rich-text content via JSON-formatted input. That JSON comes from the content author, but is passed to Drupal's component render element without sufficient validation, which can led to cross-site scripting (XSS). This vulnerability is mitigated by the fact that the attacker needs permission to use a text format that has the Embed Single Directory Components filter enabled.
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/sdc_embedto a version that resolves this vulnerability.Fixed in 1.4.1
Event History
Frequently Asked Questions
Who can exploit this vulnerability?
An attacker must have permission to use a text format with the Embed Single Directory Components filter enabled. The vulnerable JSON input originates from the content author.
What conditions make an installation affected?
An installation is affected when it uses SDC Embed and allows authors to use a text format that has the Embed Single Directory Components filter enabled.
What can be done if a fix cannot be applied immediately?
Restrict access to text formats that have the Embed Single Directory Components filter enabled, particularly for untrusted or lower-privileged content authors.