Quick answers
- Is CVE-2026-126741 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-126741 being exploited in the wild.
- How severe is CVE-2026-126741?
- Informational severity, published 11 November 2026.
- Which products and versions are affected?
- Drupal Smart Trim all versions before 2.2.2, and versions 2.3.0 before 2.3.2; Packagist:Https://Packages.Drupal.Org/8 Drupal/Smart Trim ECOSYSTEM:introduced=0,fixed=2.2.2|ECOSYSTEM:introduced=2.3.0,fixed=2.3.2.
- Is there a fix for CVE-2026-126741?
- Yes. Packagist:Https://Packages.Drupal.Org/8 Drupal/Smart Trim: upgrade to 2.2.2 or later. Until then: If a site uses only the Smart Trim field formatter without the Twig filter, the vulnerability does not apply. Alternatively, restrict content creation permissions to trusted users until upgrading. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-126741 attacked?
- It is attacked over the network.
- Am I affected by CVE-2026-126741?
- Check whether you run Drupal Smart Trim or Packagist:Https://Packages.Drupal.Org/8 Drupal/Smart Trim at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- Packagist:Https://Packages.Drupal.Org/8 Drupal/Smart Trim: upgrade to 2.2.2 or later
If a site uses only the Smart Trim field formatter without the Twig filter, the vulnerability does not apply. Alternatively, restrict content creation permissions to trusted users until upgrading.
Technical details
The Smart Trim module implements Twig filters (smart_trim_*) that do not sufficiently escape unsafe HTML input. An authenticated attacker with a role permitted to post content that passes through these filters can inject arbitrary HTML and JavaScript. The vulnerability requires the attacker to have content creation permissions and the vulnerable Twig filter to be actively used in the site's templates.
Affected products
- Drupal Smart Trim all versions before 2.2.2, and versions 2.3.0 before 2.3.2
Identifiers
- CVE-2026-126741
- DRUPAL-CONTRIB-2026-332
Timeline
- 2026-11-11: disclosed