CVE-2026-126741: Cross-site scripting in Drupal Smart Trim Twig filters
The Drupal Smart Trim module insufficiently escapes unsafe HTML processed through its smart_trim_* Twig filters, allowing cross-site scripting. Affected versions are earlier than 2.2.2 and versions 2.3.0 through 2.3.1. An attacker with permission to post content processed through an affected filter can inject script that executes in a visitor's browser. Sites using only the field formatter without the Twig filters are not vulnerable.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise confidentiality and integrity within the affected site's browser context by executing attacker-controlled script when a visitor views affected content. The vulnerability is rated Moderately critical (12/25).
Mitigation
If you can’t patch tonight, do this now.
Avoid processing user-posted content through Smart Trim's smart_trim_* Twig filters. Use only the field formatter without the Twig filters, a configuration that is not vulnerable. Restrict permissions to post content processed through the affected filters to reduce exposure.
Remediation
Patch, then assume compromise.
Upgrade affected Smart Trim 2.2.x installations to version 2.2.2 or affected 2.3.x installations to version 2.3.2.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-126741 exploited in the wild?
- As of Nov 11, 2026, Mallory has no reports of CVE-2026-126741 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-126741?
- As of Nov 11, 2026, Mallory has found no public exploit for CVE-2026-126741.
- Is there a patch for CVE-2026-126741?
- Upgrade affected Smart Trim 2.2.x installations to version 2.2.2 or affected 2.3.x installations to version 2.3.2.
Recent activity
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.