CVE-2026-126741: 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
Published 2026-11-11 · Updated 2026-11-11 · Also known as DRUPAL-CONTRIB-2026-332
Summary
A Drupal text field formatter module fails to sufficiently escape unsafe HTML when passed through its Twig filter. Site administrators using the module's Twig filters and allowing users to post relevant content should review their configurations.
Who is affected
The vulnerability affects deployments using the module's Twig filters rather than just the field formatter alone. Exploitation requires an attacker to have a role with the ability to post content that gets processed by one of the module's `|smart_trim_*` Twig filters.
Exploitability
The CVSS vector is not provided, the base score is not computed, and EPSS is not yet available. CISA Known Exploited Vulnerabilities status is no, so active exploitation is not documented.
Remediation
- Check for updates or patches provided by the module maintainers.
- Ensure that users who can post content processed by the module's Twig filters are trusted, as mitigation relies on role restrictions.
How to check your project
- Check if the Drupal module implementing the *Summary or Trimmed* improvements via `|smart_trim_*` filters is installed in the project.
- Review site codebase and Twig templates to determine if the `|smart_trim_*` filters provided by the module are actively in use.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|
FAQ
What causes the vulnerability?
The module does not sufficiently escape unsafe HTML when content is passed through the module's Twig filter.
Are all uses of the module vulnerable?
No. If a site uses only the field formatter without the Twig filter, it is not vulnerable.
What conditions are required to mitigate or exploit the issue?
An attacker must have a role with the ability to post content that gets passed through a Twig template using one of the `|smart_trim_*` filters provided by the module.
Original advisory description
References
Source records: DRUPAL-CONTRIB-2026-332 (OSV.dev) · EPSS by FIRST, 2026-11-27.