{"id":"CVE-2026-126741","aliases":["CVE-2026-126741","DRUPAL-CONTRIB-2026-332"],"related":[],"kind":"vulnerability","state":"published","title":"Smart Trim - Moderately critical - Cross-site scripting - SA-CONTRIB-2026-332","summary":"Improper Neutralization of Input During Web Page Generation (\"Cross-site Scripting\") vulnerability in Drupal Smart Trim allows Stored XSS. This issue affects Smart Trim versions: from 0.0.0 to 2.2.2, from 2.3.0 to 2.3.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Input During Web Page Generation (\"Cross-site Scripting\") vulnerability in Drupal Smart Trim allows Stored XSS. This issue affects Smart Trim versions: from 0.0.0 to 2.2.2, from 2.3.0 to 2.3.2.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"drupal"}],"published":"2026-11-11T18:00:00.000Z","modified":"2026-11-26T00:44:32.004Z","severities":[],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0","fixed":"2.2.2","status":"affected"},{"type":"semver","introduced":"2.3.0","fixed":"2.3.2","status":"affected"}],"vendor":"Drupal","product":"Smart Trim","repo":"https://git.drupalcode.org/project/smart_trim","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.2"},{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.2"}],"ecosystem":"Packagist:https://packages.drupal.org/8","package":"drupal/smart_trim","purl":"pkg:composer/drupal/smart_trim?repository_url=https:%2F%2Fpackages.drupal.org%2F8","source":"drupal"}],"references":[{"url":"https://www.drupal.org/sa-contrib-2026-332","tags":["web"],"sources":["cvelist","drupal"]}],"credits":["Pierre Rudloff (prudloff)","James Shields (lostcarpark)","Michael Anello (ultimike)","Swan Kalata (akalata)","Bram Driesen (bramdriesen)","Greg Knaddison (greggles)","Juraj Nemec (poker10)","Jess  (xjm)"],"assigner":"drupal","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-126741","url":"https://www.cve.org/CVERecord?id=CVE-2026-126741","licence":"CVE Terms of Use","modified":"2026-11-26T00:44:32.004Z"},{"source":"drupal","name":"Drupal Security Team","id":"DRUPAL-CONTRIB-2026-332","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2026-332","licence":"MIT","modified":"2026-11-11T18:45:05.030Z"}],"updatedAt":"2026-11-26T00:57:03.453Z","epss":{"score":0.00284,"percentile":0.22442,"date":"2026-12-01T12:00:22.000Z"}}