DRUPAL-CONTRIB-2026-332

See a problem?
Import Source
https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/smart_trim/DRUPAL-CONTRIB-2026-332.json
JSON Data
https://api.osv.dev/v1/vulns/DRUPAL-CONTRIB-2026-332
Aliases
  • CVE-2026-126741
Published
2026-11-11T18:00:00Z
Modified
2026-11-11T18:45:05Z
Summary
[none]
Details

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
Credits

Affected packages

Packagist:https://packages.drupal.org/8 / drupal/smart_trim

Package

Name
drupal/smart_trim
Purl
pkg:composer/drupal/smart_trim?repository_url=https:%2F%2Fpackages.drupal.org%2F8

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.2.2
Database specific
Show details
{
    "constraint": "<2.2.2"
}
Type
ECOSYSTEM
Events
Introduced
2.3.0
Fixed
2.3.2
Database specific
Show details
{
    "constraint": ">=2.3.0 <2.3.2"
}

Database specific

affected_versions
"<2.2.2 || >=2.3.0 <2.3.2"
source
"https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/smart_trim/DRUPAL-CONTRIB-2026-332.json"