CVE-2026-126741 json
This module implements a field formatter for text fields that improves the *Summary or Trimmed* formatter built into Drupal core.
published 16h ago modified 16h ago also DRUPAL-CONTRIB-2026-332
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no EPSS score yet
- public exploits
- 0
- none known
Summary
This module implements a field formatter for text fields that improves the *Summary or Trimmed* formatter built into Drupal core.
The module doesn't sufficiently escape unsafe HTML when passed through the module's Twig filter.
This vulnerability is mitigated by the fact that an attacker must have a role with the ability to post content that gets passed through a Twig template with one of the `|smart_trim_*` filters provided by this module.
If a site uses only use the field formatter without the Twig filter, it is not vulnerable.
Patch / fix
- packagist drupal/smart_trim 2.2.2, 2.3.2
Is CVE-2026-126741 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | drupal/smart_trim | <2.2.2 >=2.3.0, <2.3.2 |
2.2.2 2.3.2 |
References
Sources
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.