CVE-2026-126741
JSON

Not scored

Smart Trim - Moderately critical - Cross-site scripting - SA-CONTRIB-2026-332

Severity
Not scored
Exploit likelihood
0.28% (higher than 22% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
drupal
Also known as
DRUPAL-CONTRIB-2026-332

Description

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.

Affected

Product or packageVersionsReported by
Drupal Smart Trimfrom 0.0.0 before 2.2.2, from 2.3.0 before 2.3.2CVE List
drupal/smart_trim (Packagist:https://packages.drupal.org/8)before 2.2.2, from 2.3.0 before 2.3.2Drupal Security Team

Classification

What each source says

CVE List

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.

Drupal Security Team

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

Sources

SourceRecordLicence
CVE ListCVE-2026-126741 changed 2026-11-26CVE Terms of Use
Drupal Security TeamDRUPAL-CONTRIB-2026-332 changed 2026-11-11MIT