Project machine name: 
texts
Date: 
2026-November-11
Vulnerability: 
Cross-site scripting
Affected versions: 
<1.0.17
CVE IDs: 
CVE-2026-126727
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.

Solution: 

Install the latest version:

If you cannot update immediately, you can reduce the risk with the following steps:

  1. Go to Configuration » Regional and language » Texts Settings (/admin/config/regional/texts), enable Require "edit string translation" permission to create new texts entities, and save.
  2. Give the permissions "Create string translation" and "Edit string translation" only to trusted roles.
  3. Check the existing texts at /admin/content/texts for unexpected HTML and remove it.

These steps reduce the risk but do not fully fix the vulnerability. Update to the fixed release as soon as possible.

Reported By: 
Coordinated By: