Search
Find a vulnerability
Search criteria
Related vulnerabilities
DRUPAL-CONTRIB-2026-332 (CVE-2026-126741)
Vulnerability from drupal – Published: 2026-11-11 18:00 – Updated: 2026-11-11 18:00 – Source website
VLAI
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.
Credits
References
| URL | Type | |
|---|---|---|
{
"affected": [
{
"database_specific": {
"affected_versions": "\u003c2.2.2 || \u003e=2.3.0 \u003c2.3.2"
},
"package": {
"ecosystem": "Packagist:https://packages.drupal.org/8",
"name": "drupal/smart_trim"
},
"ranges": [
{
"database_specific": {
"constraint": "\u003c2.2.2"
},
"events": [
{
"introduced": "0"
},
{
"fixed": "2.2.2"
}
],
"type": "ECOSYSTEM"
},
{
"database_specific": {
"constraint": "\u003e=2.3.0 \u003c2.3.2"
},
"events": [
{
"introduced": "2.3.0"
},
{
"fixed": "2.3.2"
}
],
"type": "ECOSYSTEM"
}
],
"severity": []
}
],
"aliases": [
"CVE-2026-126741"
],
"credits": [
{
"contact": [
"https://www.drupal.org/u/prudloff"
],
"name": "Pierre Rudloff (prudloff)"
}
],
"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\u0027t sufficiently escape unsafe HTML when passed through the module\u0027s 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.",
"id": "DRUPAL-CONTRIB-2026-332",
"modified": "2026-11-11T18:00:00.000Z",
"published": "2026-11-11T18:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://www.drupal.org/sa-contrib-2026-332"
}
],
"schema_version": "1.7.0"
}