SEVERITY NOT PROVIDED EPSS 0.3% · 13th percentile

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade

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
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.

References

Source records: DRUPAL-CONTRIB-2026-332 (OSV.dev) · EPSS by FIRST, 2026-11-27.