SA-CONTRIB-2026-318: Critical severity composer/drupal/texts vulnerability
The Texts module provides key-based strings and translations for Drupal, including Twig filters for displaying translated text. The module does not sufficiently validate translation HTML and can display stored translations without sufficient filtering. A user who can create or edit string translations could inject JavaScript into pages that render those translations. This vulnerability is mitigated by the fact that an attacker must have the "Create string translation" or "Edit string translation" permission, and a site must render the affected text using the module’s Twig filters.
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/textsto a version that resolves this vulnerability.Fixed in 1.0.17