CVE-2026-142431: 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.
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 is exposed to this vulnerability?
Sites using composer/drupal/sdc_embed are exposed when a text format available to potentially malicious content authors has the Embed Single Directory Components filter enabled. The attacker must have permission to use that text format.
What does an attacker need to exploit it?
An attacker needs authoring access that permits use of a text format with the Embed Single Directory Components filter enabled. They can then supply JSON-formatted component input that reaches Drupal's component render element without sufficient validation.
How can I determine whether my site is affected?
Check whether the SDC Embed module is installed and review configured text formats for the Embed Single Directory Components filter. Identify which roles or users are allowed to use any text format where that filter is enabled.