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 package | Versions | Reported by |
|---|---|---|
| Drupal Smart Trim | from 0.0.0 before 2.2.2, from 2.3.0 before 2.3.2 | CVE List |
| drupal/smart_trim (Packagist:https://packages.drupal.org/8) | before 2.2.2, from 2.3.0 before 2.3.2 | Drupal 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-126741 changed 2026-11-26 | CVE Terms of Use |
| Drupal Security Team | DRUPAL-CONTRIB-2026-332 changed 2026-11-11 | MIT |