CVE-2025-11570: drupal-pattern-lab/unified-twig-extensions is vulnerable to XXS
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.
Published Oct 10, 2025
Affected packages
drupal-pattern-lab/unified-twig-extensions
- Ecosystem
- Composer (PHP)
- Affected
- <= 0.1.0
- Fixed in
- No patched version yet
- Check
composer show drupal-pattern-lab/unified-twig-extensions
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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, but is not published to the Composer PHP registry.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-11570
- https://github.com/drupal-pattern-lab/unified-twig-extensions/blob/862b9deccab544ca68e3aaaccc257d14acc9b1f6/example/_twig-components/functions/link.function.php%23L9
- https://security.snyk.io/vuln/SNYK-PHP-DRUPALPATTERNLABUNIFIEDTWIGEXTENSIONS-8400877
- https://www.drupal.org/sa-contrib-2023-041
- https://www.drupal.org/project/unified_twig_ext
- https://github.com/advisories/GHSA-64mv-9655-37hx
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
