DRUPAL-CONTRIB-2023-041 This module makes PatternLab's custom Twig functions available to Drupal theming.

Not scored Published

Insufficient filtering in example code allows XSS if copied to a theme, requiring site builders to update the module.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is DRUPAL-CONTRIB-2023-041?

DRUPAL-CONTRIB-2023-041 is a cross-site scripting vulnerability in drupal/unified_twig_ext, published on 30 Aug 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

This module makes PatternLab's custom Twig functions available to Drupal theming.

The module's included examples don't sufficiently filter data.

This vulnerability is mitigated by the fact that the included examples must have been copied to a site's theme.

Which versions are affected by DRUPAL-CONTRIB-2023-041?

Linux distribution packages (1)
drupal/unified_twig_ext Packagist:https://packages.drupal.org/8All versions1.1.1

How do I fix DRUPAL-CONTRIB-2023-041?

Apply the vendor's patch.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is DRUPAL-CONTRIB-2023-041 being exploited?

There is no known exploitation of DRUPAL-CONTRIB-2023-041 in the wild and no public exploit code.

Sources

Is DRUPAL-CONTRIB-2023-041 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free