Skip to main content
Menu
Advisories

The Texts module provides key-based strings and translations for Drupal, including Twig filters for displaying translated text

DRUPAL-CONTRIB-2026-318Published Updated Drupal

Description

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.

Affected versions

References