- Package
- drupal/texts
- Fixed in
- 1.0.17
- Published
- Wed 11 Nov 2026, 17:41 LisbonUpdated Sun 22 Nov 2026, 00:45 Lisbon
In plain words
The Texts module can display stored translations without sufficiently checking or filtering their HTML, allowing a user who can create or edit translations to inject JavaScript into pages. This requires the attacker to have the "Create string translation" or "Edit string translation" permission, and the site to display the affected text using the module’s Twig filters.
How serious is it?
The source record has no severity score, so the rating is yours to make. Read the description for two things: what an attacker needs (an account, a particular setting, a user who clicks a link) and what they get. Drupal security advisories carry their own risk score on drupal.org, which is not in the OSV record. When the advisory gives no details at all, assume the worst until you know more: an unfixed issue with an unknown impact is not a low one.
Am I affected?
Look for drupal/texts in composer.lock and check its version. The advisory lists 1.0.17 as fixed but gives no affected version range. Check who has the "Create string translation" or "Edit string translation" permission and whether your site renders their translations using the module’s Twig filters.
Did you install drupal/texts, or did a dependency?
Composer says why a package is in your project:
composer why drupal/texts
If the output names your own project, you required drupal/texts directly and the update is yours to make. If it names another package, drupal/texts came in through it, and that package's version constraint decides which release you can install. To see what stands between you and the fix, ask Composer directly:
composer why-not drupal/texts 1.0.17
Every line it prints is a constraint that blocks 1.0.17. Update the package it names, or raise your own constraint, and run it again until it prints nothing.
What to do
Check which version you have, then update to a fixed release for your branch (1.0.17):
composer show drupal/texts | grep versions
composer update drupal/texts
If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.
If you cannot update yet
The advisory says the risk is mitigated by the need for an attacker to have the "Create string translation" or "Edit string translation" permission and for the site to render the affected text using the module’s Twig filters.
Check the whole project at once
Composer 2.4 and later can list every installed package with a known advisory, this one included once Packagist has it:
composer audit --locked
--locked reads composer.lock instead of the vendor folder, so you can run it on a release tag or in CI without installing anything. It exits with a non-zero code when it finds an advisory, which is enough to fail a build. Run it on every branch you still support, not only the newest: an older release your customers run is affected in the same way.
Under the Cyber Resilience Act
No exploitation of this vulnerability is known, so on its own it does not start the Article 14 reporting clock, which covers actively exploited vulnerabilities. That changes if you learn it is being exploited through your product: then the 24-hour early warning applies.
Either way, if drupal/texts ships inside a product you sell, the CRA treats its vulnerabilities as yours. Article 13(5) asks for due diligence on the components you include, and from 11 December 2027 Annex I asks you to ship security fixes without delay and free of charge for the support period you declared. A short note in your changelog saying which release updated drupal/texts, and why, is the evidence you will want later.
What goes in each Article 14 report · Does the CRA apply to your product?
drupal/texts's record
This is one of 2 advisories for drupal/texts in the digest, the first published on 11 November 2026. A package with several advisories is not worse than one with none, which often just means nobody looked; it does tell you to keep it on your update list and to run composer audit after each update.
Other advisories for drupal/texts
- CVE-2026-126728 · 11 Nov 2026 · Unrated · fixed in 1.0.17 The Texts module provides key-based strings and translations for Drupal and tools for managing them. The module does not sufficiently protect an action to rest...
The advisory's 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.
The advisory
- OSV.dev: DRUPAL-CONTRIB-2026-318
- The week's digest, with the other advisories from 9 Nov 2026
- All advisories for drupal/texts