CVE-2025-11570 drupal-pattern-lab/unified-twig-extensions is vulnerable to XXS

Medium 4.8 Published Updated

Cross-site scripting vulnerability in an unmaintained PHP library allows code execution when used outside Drupal, requiring migration to a maintained alternative.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-11570?

CVE-2025-11570 is a medium-severity cross-site scripting vulnerability in drupal-pattern-lab/unified-twig-extensions, published on 10 Oct 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Versions of the package drupal-pattern-lab/unified-twig-extensions from 0.0.0 are vulnerable to Cross-site Scripting (XSS) due to insufficient filtering of data. **Note:** This is exploitable only if the code is executed outside of Drupal; the function is intended to be shared between Drupal and Pattern Lab. The package drupal-pattern-lab/unified-twig-extensions is unmaintained, the fix for this issue exists in version 1.1.1 of [drupal/unified_twig_ext](https://www.drupal.org/project/unified_twig_ext)

Weakness: CWE-79

Which versions are affected by CVE-2025-11570?

2 open source packages ship an affected version, including drupal-pattern-lab/unified-twig-extensions.

PackageAffectedFixed in
drupal-pattern-lab/unified-twig-extensions PackagistAll versions to 0.1.0None
drupal-pattern-lab/unified-twig-extensions PackagistAll versions to 0.1.0None

How do I fix CVE-2025-11570?

No fix has been published for CVE-2025-11570 yet. Limit exposure of the affected software until one is available.

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 CVE-2025-11570 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-11570 exists.

Sources

Also known as GHSA-64mv-9655-37hx.

Is CVE-2025-11570 in your software?

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

Check your SBOMs for free