● Composer package
twig/twig
Twig/twig has 26 security advisories. The newest release any of them names as the fix is 3.27.0.
As of , twig/twig has 26 security advisories. The newest release any of them names as the fix is 3.27.0.
Your version, and the version to upgrade to
| If you run | Upgrade to | Advisories |
|---|---|---|
| Before 3.27.0 | 3.27.0 | 26 advisories |
Security advisories, newest first
| Advisory | What it is | Affects | Fixed in | Published |
|---|---|---|---|---|
| CVE-2026-49981GHSA-529h-vh3j-85hq | Twig: Sandbox filter, tag and function allow-list bypass when sandbox state changes between renders for a cached `Template`High severity | Before 3.27.0 | 3.27.0 | |
| CVE-2026-46636 | Sandbox filter, tag and function allow-list bypass when sandbox state changes between renders | From 1.0.0 before 3.27.0 | 3.27.0 | |
| CVE-2026-48806GHSA-5v5v-ww74-355v | Twig: Sandbox `__toString()` policy bypass via dynamic mapping keysModerate severity | Before 3.27.0 | 3.27.0 | |
| CVE-2026-48807GHSA-8x9c-rmqh-456c | Twig: Sandbox `__toString()` policy bypass via `Traversable` in `join` and `replace` filtersModerate severity | Before 3.27.0 | 3.27.0 | |
| CVE-2026-48808GHSA-h8vq-8gpg-mhcg | Twig: Sandbox property allowlist bypass via the `column` filter under `SourcePolicyInterface`Moderate severity | Before 3.27.0 | 3.27.0 | |
| CVE-2026-48805GHSA-p42q-9prx-q5wq | Twig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`Low severity | Before 3.27.0 | 3.27.0 | |
| CVE-2026-46627 | Sandbox does not protect against resource exhaustion | From 1.0.0 before 3.26.0 | 3.26.0 | |
| CVE-2026-46634GHSA-24x9-r6q4-q93w | Twig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized template nameModerate severity | From 3.9.0 before 3.26.0 | 3.26.0 | |
| CVE-2026-47730GHSA-2g2g-8p8h-fgwm | Twig: XSS in profiler HtmlDumper via unescaped template and profile namesLow severity | From 3.0.0 before 3.26.0 | 3.26.0 | |
| CVE-2026-24425GHSA-2q52-x2ff-qgfr | Twig: Possible sandbox bypass when using a source policyHigh severity | From 3.9.0 before 3.26.0; From 2.16.0 before 3.0.0 | 3.26.0 | |
| CVE-2026-46640GHSA-45vw-wh46-2vx8 | Twig: Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilationHigh severity | From 3.15.0 before 3.26.0 | 3.26.0 | |
| CVE-2026-46628GHSA-4j38-f5cw-54h7 | Twig: The `spaceless` filter implicitly marks its output as safeLow severity | Before 3.26.0 | 3.26.0 | |
| CVE-2026-46638GHSA-7fxw-r6jv-74c8 | Twig: `{% sandbox %}{% include %}` skips checkSecurity() on cached templates (incomplete fix for CVE-2024-45411)Moderate severity | Before 3.26.0 | 3.26.0 | |
| CVE-2026-46633GHSA-7p85-w9px-jpjp | Twig: PHP code injection via `{% use %}` template nameCritical severity | From 1.0.0 before 3.26.0 | 3.26.0 | |
| CVE-2026-46639GHSA-mm6w-gr99-p3jj | Twig: Sandbox property and method bypass via object-destructuring assignmentHigh severity | From 3.24.0 before 3.26.0 | 3.26.0 | |
| CVE-2026-47732GHSA-pr2w-4gpj-cpq4 | Twig: Sandbox: multiple `__toString()` policy bypasses via unguarded string coercion pointsHigh severity | Before 3.26.0 | 3.26.0 | |
| CVE-2026-46635GHSA-vcc8-phrv-43wj | Twig: Sandbox property allowlist bypass via the `column` filter (array_column on objects)Low severity | Before 3.26.0 | 3.26.0 | |
| CVE-2025-24374GHSA-3xg3-cgvq-2xwr | Twig security issue where escaping was missing when using null coalesce operatorModerate severity | From 3.16.0 before 3.19.0 | 3.19.0 | |
| CVE-2024-51754GHSA-6377-hfv9-hqf6 | Twig has unguarded calls to `__toString()` when nesting an object into an arrayLow severity | From 3.12 before 3.14.1; Before 3.11.2 | 3.11.2, 3.14.1 | |
| CVE-2024-51755GHSA-jjxq-ff2g-95vh | Twig has unguarded calls to `__isset()` and to array-accesses when the sandbox is enabledLow severity | From 3.12 before 3.14.1; Before 3.11.2 | 3.11.2, 3.14.1 | |
| CVE-2024-45411GHSA-6j75-5wfj-gh66 | Twig has a possible sandbox bypassModerate severity | From 3.12.0 before 3.14.0; From 3.0.0 before 3.11.1; From 2.0.0 before 2.16.1; From 1.0.0 before 1.44.8 | 1.44.8, 2.16.1, 3.11.1, 3.14.0 | |
| CVE-2022-39261GHSA-52m2-vc4m-jj33, DRUPAL-CORE-2022-016 | Twig may load a template outside a configured directory when using the filesystem loaderHigh severity | From 3.0.0 before 3.4.3; From 2.0.0 before 2.15.3; From 1.0.0 before 1.44.7 | 1.44.7, 2.15.3, 3.4.3 | |
| CVE-2022-23614GHSA-5mv2-rx3q-4w2v | Code injection in TwigHigh severity | From 3.0.0 before 3.3.8; From 2.0.0 before 2.14.11 | 2.14.11, 3.3.8 | |
| CVE-2019-9942GHSA-vxrc-68xx-x48g | Twig Sandbox Information DisclosureLow severity | From 2.0.0 before 2.7.0; Before 1.38.0 | 1.38.0, 2.7.0 | |
| CVE-2015-7809GHSA-xw83-pwrm-9j74 | Twig remote code execution in templatesHigh severity | Before 1.20.0 | 1.20.0 | |
| GHSA-7cvr-xhm5-x998 | Twig Path Traversal vulnerability in the filesystem loaderModerate severity | From 1.0.0 before 1.12.3 | 1.12.3 |
Other Composer packages
- grumpydictator/firefly-iii26 advisories
- openmage/magento-lts26 advisories
- magento/core24 advisories
- phpoffice/phpexcel23 advisories
Sources
- Package versions from the Drupal advisory database, Copyright 2025 Ackama (MIT License) (source). Licence: MIT License
- Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0