CVE Tools

Twig

33 CVEs tracked. None of them is in CISA KEV.

This hub aggregates every CVE we track for Twig, a product in the oss libraries space. Use it to gauge the current risk picture and drill into individual advisories.

Twig CVEs per month

Oct 2024 to Sep 2026. Point at a month, or focus the strip and use the arrow keys.
Twig CVEs per month
MonthCVEs
2024-100
2024-112
2024-120
2025-011
2025-020
2025-030
2025-040
2025-050
2025-060
2025-070
2025-080
2025-090
2025-100
2025-110
2025-120
2026-010
2026-020
2026-030
2026-040
2026-051
2026-060
2026-0717
2026-080
2026-091

Severity

How the 33 CVEs score on CVSS. Severity is not exploitation: KEV is counted above.

  • Critical619%
  • High1238%
  • Medium1134%
  • Low39%

Latest CVEs

The 15 most recently published vulnerabilities affecting Twig.

  1. CVE-2026-46636Twig: Sandbox method allowlist bypass via `Markup` subclass—
  2. CVE-2026-48807Twig: Sandbox `__toString()` policy bypass via `Traversable` in `join` and `replace` filters9.1
  3. CVE-2026-48806Twig: Sandbox `__toString()` policy bypass via dynamic mapping keys9.1
  4. CVE-2026-48808Twig: Sandbox property allowlist bypass via the `column` filter under `SourcePolicyInterface`7.5
  5. CVE-2026-48805Twig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`9.1
  6. CVE-2026-49981Twig: Sandbox filter, tag and function allow-list bypass when sandbox state changes between renders for a cached `Template`8.2
  7. CVE-2026-46637Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`5.4
  8. CVE-2026-46638Twig: `{% sandbox %}{% include %}` skips checkSecurity() on cached templates (incomplete fix for CVE-2024-45411)8.1
  9. CVE-2026-46640Twig: Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilation8.8
  10. CVE-2026-46629Twig: Unbounded formatter memoisation in twig/intl-extra keyed on template-controlled arguments6.5
  11. CVE-2026-47730Twig: XSS in profiler HtmlDumper via unescaped template and profile names5.4
  12. CVE-2026-46628Twig: The `spaceless` filter implicitly marks its output as safe5.4
  13. CVE-2026-46634Twig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized template name9.8
  14. CVE-2026-46627Twig: Sandbox resource exhaustion via unbounded `for` / `range()`6.5
  15. CVE-2026-46633Twig: PHP code injection via `{% use %}` template name9.8

Product grouping is registry-driven, with AI assist and human review. How it works

We use analytics cookies to see which pages and articles actually help people. Decline and none of them run — the site works the same. What we store