{"id":"DRUPAL-CONTRIB-2026-332","details":"This module implements a field formatter for text fields that improves the *Summary or Trimmed* formatter built into Drupal core.\n\nThe module doesn't sufficiently escape unsafe HTML when passed through the module's Twig filter.\n\nThis 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.\n\nIf a site uses only use the field formatter without the Twig filter, it is not vulnerable.","aliases":["CVE-2026-126741"],"modified":"2026-11-11T18:45:05.030358314Z","published":"2026-11-11T18:00:00Z","references":[{"type":"WEB","url":"https://www.drupal.org/sa-contrib-2026-332"}],"affected":[{"package":{"name":"drupal/smart_trim","ecosystem":"Packagist:https://packages.drupal.org/8","purl":"pkg:composer/drupal/smart_trim?repository_url=https:%2F%2Fpackages.drupal.org%2F8"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.2"}],"database_specific":{"constraint":"\u003c2.2.2"}},{"type":"ECOSYSTEM","events":[{"introduced":"2.3.0"},{"fixed":"2.3.2"}],"database_specific":{"constraint":"\u003e=2.3.0 \u003c2.3.2"}}],"database_specific":{"source":"https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/smart_trim/DRUPAL-CONTRIB-2026-332.json","affected_versions":"\u003c2.2.2 || \u003e=2.3.0 \u003c2.3.2"}}],"schema_version":"1.9.2","credits":[{"name":"Pierre Rudloff (prudloff)","contact":["https://www.drupal.org/u/prudloff"]}]}