---
title: "twigphp Twig vulnerabilities and CVEs"
url: https://radicalnotion.ai/vendor/twigphp/twig
type: product
description: "twigphp Twig has 38 published CVEs, 0 in CISA KEV and 2 with public exploits."
updated: 2026-11-24
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# twigphp Twig vulnerabilities

Vendor: [twigphp](https://radicalnotion.ai/vendor/twigphp)

- **Published CVEs:** 38
- **In CISA KEV:** 0
- **With a public exploit:** 2
- **With a patch:** 38
- **Average CVSS:** 5.6
- **First CVE:** 2015-11-06
- **Latest CVE:** 2026-11-24

## Severity breakdown

| Severity | CVEs |
| --- | --- |
| Critical | 3 |
| High | 11 |
| Medium | 14 |
| Low | 10 |
| Unscored | 0 |

## Most common weakness types

| CWE | Name | CVEs |
| --- | --- | --- |
| [CWE-693](https://radicalnotion.ai/cwe/cwe-693) | Protection Mechanism Failure | 14 |
| [CWE-863](https://radicalnotion.ai/cwe/cwe-863) | Incorrect Authorization | 5 |
| [CWE-94](https://radicalnotion.ai/cwe/cwe-94) | Improper Control of Generation of Code | 3 |
| [CWE-79](https://radicalnotion.ai/cwe/cwe-79) | Improper Neutralization of Input During Web Page Generation | 3 |
| [CWE-668](https://radicalnotion.ai/cwe/cwe-668) | Exposure of Resource to Wrong Sphere | 2 |
| [CWE-116](https://radicalnotion.ai/cwe/cwe-116) | Improper Encoding or Escaping of Output | 2 |
| [CWE-74](https://radicalnotion.ai/cwe/cwe-74) | Improper Neutralization of Special Elements in Output Used by a Downstream Component | 2 |
| [CWE-770](https://radicalnotion.ai/cwe/cwe-770) | Allocation of Resources Without Limits or Throttling | 2 |

## CVEs by year

| Year | CVEs published |
| --- | --- |
| 2015 | 1 |
| 2016 | 0 |
| 2017 | 0 |
| 2018 | 1 |
| 2019 | 1 |
| 2020 | 0 |
| 2021 | 0 |
| 2022 | 2 |
| 2023 | 0 |
| 2024 | 3 |
| 2025 | 1 |
| 2026 | 29 |

## Affected versions (top 24 of 289)

| Version | Kind | CVEs |
| --- | --- | --- |
| 3.24.0 | exact | 28 |
| 3.25.0 | exact | 28 |
| 3.23.0 | exact | 27 |
| 3.12.0 | exact | 26 |
| 3.13.0 | exact | 26 |
| 3.16.0 | exact | 26 |
| 3.17.0 | exact | 26 |
| 3.17.1 | exact | 26 |
| 3.18.0 | exact | 26 |
| 3.21.0 | exact | 26 |
| 3.21.1 | exact | 26 |
| 3.22.0 | exact | 26 |
| \< 3.26.0 | range | 7 |
| \< 3.27.0 | range | 4 |
| \< 3.11.2 | range | 2 |
| 3.12.0 \<= v \< 3.14.1 | range | 2 |
| 3.9.0 \<= v \< 3.26.0 | range | 2 |
| =\> 1.0.0, \< 1.44.7 | range | 1 |
| 1.0.0 \<= v \< 1.44.8 | range | 1 |
| 1.0.0 \<= v \< 3.27.0 | range | 1 |
| 1.15.1 \<= v \< 3.26.0 | range | 1 |
| 2.0.0 \<= v \< 2.14.11 | range | 1 |
| 2.0.0 \<= v \< 2.15.3 | range | 1 |
| 2.0.0 \<= v \< 2.16.1 | range | 1 |

## Fixed in

| Version | CVEs |
| --- | --- |
| 3.26.0 | 13 |
| 3.27.0 | 5 |
| 3.11.2 | 2 |
| 3.14.1 | 2 |
| 1.44.8 | 1 |
| 2.14.11 | 1 |
| 2.15.3 | 1 |
| 2.16.1 | 1 |
| 3.14.0 | 1 |
| 3.19.0 | 1 |
| 3.3.8 | 1 |
| 3.4.3 | 1 |

## CVEs (first 30 of 38, most severe first)

| CVE | Title | Severity | CVSS | CISA KEV | Public exploit | Patch |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-133773 | Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Options | low | 2.3 | No | No | Yes |
| CVE-2026-133772 | Sandbox Tag Allow-List Bypass via the Branch of a \`guard\` Tag That Isn't Selected | low | 2.3 | No | No | Yes |
| CVE-2026-133771 | Missing autoescaping for a variable named like a macro import alias of another scope | low | 2.3 | No | No | Yes |
| CVE-2026-133770 | Sandboxed templates can rewrite application-owned \`Markup\` objects through their constructor | low | 2.1 | No | No | Yes |
| CVE-2026-133769 | Sandbox property allow-list bypass via \`html\_cva()\` variant values | low | 2.3 | No | No | Yes |
| CVE-2026-133768 | Sandbox property allow-list bypass via the \`join\` filter on non-iterable objects | medium | 5.3 | No | No | Yes |
| CVE-2026-133767 | Sandbox allow-list and \`\_\_toString()\` bypass via a dynamic \`embed\` parent expression | medium | 5.3 | No | No | Yes |
| CVE-2026-133766 | Sandbox \`\_\_toString()\` policy bypass via spread arguments | low | 2.3 | No | No | Yes |
| CVE-2026-133765 | Sandbox \`\_\_toString()\` policy bypass via assignment and destructuring expressions | medium | 5.3 | No | No | Yes |
| CVE-2026-133764 | Sandbox \`\_\_toString()\` policy bypass via the input of custom tests | low | 2.3 | No | No | Yes |
| CVE-2026-133763 | Sandbox \`\_\_toString()\` policy bypass via the \`is true\` test | medium | 5.3 | No | No | Yes |
| CVE-2026-46636 | Twig: Sandbox method allowlist bypass via \`Markup\` subclass | high | 8.7 | No | No | Yes |
| CVE-2026-48807 | Twig: Sandbox \`\_\_toString()\` policy bypass via \`Traversable\` in \`join\` and \`replace\` filters | high | 7.1 | No | No | Yes |
| CVE-2026-48806 | Twig: Sandbox \`\_\_toString()\` policy bypass via dynamic mapping keys | high | 7.1 | No | No | Yes |
| CVE-2026-48808 | Twig: Sandbox property allowlist bypass via the \`column\` filter under \`SourcePolicyInterface\` | medium | 6.0 | No | No | Yes |
| CVE-2026-48805 | Twig: Sandbox state regression in deprecated internal wrappers in \`src/Resources/core.php\` | medium | 5.3 | No | No | Yes |
| CVE-2026-46637 | Twig: HTML-output filters in twig/\* extras incorrectly declared \`is\_safe =\> \['all'\]\` | medium | 5.1 | No | No | Yes |
| CVE-2026-46638 | Twig: \`{% sandbox %}{% include %}\` skips checkSecurity() on cached templates (incomplete fix for CVE-2024-45411) | medium | 6.0 | No | No | Yes |
| CVE-2026-46640 | Twig: Arbitrary PHP code execution via \`\_self.( )\` macro-reference compilation | high | 8.7 | No | No | Yes |
| CVE-2026-46629 | Twig: Unbounded formatter memoisation in twig/intl-extra keyed on template-controlled arguments | medium | 5.3 | No | No | Yes |
| CVE-2026-47730 | Twig: XSS in profiler HtmlDumper via unescaped template and profile names | medium | 5.1 | No | No | Yes |
| CVE-2026-46628 | Twig: The \`spaceless\` filter implicitly marks its output as safe | medium | 5.1 | No | Yes | Yes |
| CVE-2026-46634 | Twig: \`template\_from\_string()\` escapes a SourcePolicy-driven sandbox via synthesized template name | high | 7.7 | No | No | Yes |
| CVE-2026-46627 | Twig: Sandbox resource exhaustion via unbounded \`for\` / \`range()\` | high | 7.1 | No | No | Yes |
| CVE-2026-46633 | Twig: PHP code injection via \`{% use %}\` template name | critical | 9.3 | No | No | Yes |
| CVE-2026-46639 | Twig: Sandbox property and method bypass via object-destructuring assignment | high | 8.7 | No | No | Yes |
| CVE-2026-46635 | Twig: Sandbox property allowlist bypass via the \`column\` filter (array\_column on objects) | medium | 5.3 | No | No | Yes |
| CVE-2026-47732 | Twig Sandbox: multiple \`\_\_toString()\` policy bypasses via unguarded string coercion points | high | 7.1 | No | No | Yes |
| CVE-2026-24425 | Twig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterface | high | 8.7 | No | No | Yes |
| CVE-2025-24374 | Twig fixes a security issue where escaping was missing when using null coalesce operator (??) | medium | 4.3 | No | No | Yes |

## Frequently asked questions

### How many CVEs does twigphp Twig have?

twigphp Twig has 38 published CVE records since 2015.

### How many twigphp Twig CVEs are in CISA KEV?

None of twigphp Twig's CVEs are currently listed in CISA's Known Exploited Vulnerabilities catalog.

### Are there public exploits for twigphp Twig vulnerabilities?

Yes — 2 of twigphp Twig's CVEs have a known public exploit.

### Which versions of twigphp Twig are affected?

301 distinct twigphp Twig versions are named across its CVEs. Use the version filter above to see the CVEs affecting a specific version.

### What are the most common weakness types in twigphp Twig CVEs?

twigphp Twig's CVEs most often map to these CWE weakness types: CWE-693 (Protection Mechanism Failure), CWE-863 (Incorrect Authorization), CWE-94 (Improper Control of Generation of Code), CWE-79 (Improper Neutralization of Input During Web Page Generation).

### How many critical twigphp Twig vulnerabilities are there?

twigphp Twig has 3 critical and 11 high-severity CVEs.

### What is the average severity of twigphp Twig CVEs?

The average CVSS base score across twigphp Twig's scored CVEs is 5.6.

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/vendor/twigphp/twig). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
