Project: 
Project machine name: 
smart_trim
Date: 
2026-November-11
Vulnerability: 
Cross-site scripting
Affected versions: 
<2.2.2 || >=2.3.0 <2.3.2
CVE IDs: 
CVE-2026-126741
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.

Solution: 

Install the latest version:

Reported By: 
Coordinated By: