CVE-2026-126727: Composer/drupal/texts vulnerability

Published Nov 11, 2026
·
Updated

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 Software

1 affected componentFixes available
composer/drupal/texts<1.0.17
1.0.17

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/drupal/texts to a version that resolves this vulnerability.

    Fixed in 1.0.17

Event History

Nov 11, 2026
Advisory Published
via OSV·05:41 PM
Data Sourced
via OSV·05:41 PM
DescriptionAffected Software

Frequently Asked Questions

1

Who can exploit this issue?

An attacker must have either the "Create string translation" or "Edit string translation" permission. Users without one of those permissions cannot use this issue to inject translation content.

2

When is a site exposed?

The site must use the Texts module and render the affected translated text through the module's Twig filters. If injected translations are rendered in pages viewed by other users, the injected JavaScript can execute in those pages.

3

What can be done while waiting to patch?

Remove the "Create string translation" and "Edit string translation" permissions from untrusted accounts. Review existing translations created or edited by accounts with those permissions, particularly translations rendered through the module's Twig filters.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203