Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

Twig — Vulnerabilities & Security Advisories 25

All 25 CVE vulnerabilities found in Twig, with AI-generated Chinese analysis, references, and POCs.

This page provides a comprehensive aggregation of vulnerability data for the Twig template engine, a widely used PHP templating system. It compiles security issues ranging from Cross-Site Scripting (XSS) and Server-Side Request Forgery (SSRF) to code injection and information disclosure flaws discovered across various versions. The collection covers incidents reported and patched between 2016 and the present, ensuring a historical perspective on the product's security evolution. Visitors to this page can effectively track vendor advisories to stay informed about emerging threats and remediation efforts. Users can also gain a deeper understanding of specific weakness classes by examining how they manifest within the Twig architecture. Furthermore, the resource allows for a detailed lookup of a product’s vulnerability history, highlighting recurring patterns and critical patches. This centralized view helps security professionals assess the risk profile associated with Twig deployments in their environments. By consolidating disparate reports and advisory notes, the page serves as a vital reference for developers and administrators seeking to mitigate risks. The data is organized to facilitate quick identification of affected versions and recommended actions. Ultimately, this resource supports informed decision-making regarding upgrades and security configurations without requiring external searches for fragmented information.

Vendor: twigphp

CVE ID Title CVSS Severity Published
CVE-2026-46636 Twig: Sandbox method allowlist bypass via `Markup` subclass CWE-1336 8.7 High 2026-09-04
CVE-2026-48807 Twig: Sandbox `__toString()` policy bypass via `Traversable` in `join` and `replace` filters CWE-693 - - 2026-07-14
CVE-2026-48806 Twig: Sandbox `__toString()` policy bypass via dynamic mapping keys CWE-693 - - 2026-07-14
CVE-2026-48808 Twig: Sandbox property allowlist bypass via the `column` filter under `SourcePolicyInterface` CWE-693 - - 2026-07-14
CVE-2026-48805 Twig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php` CWE-693 - - 2026-07-14
CVE-2026-49981 Twig: Sandbox filter, tag and function allow-list bypass when sandbox state changes between renders for a cached `Template` CWE-693 - - 2026-07-14
CVE-2026-46637 Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']` CWE-116 - - 2026-07-14
CVE-2026-46638 Twig: `{% sandbox %}{% include %}` skips checkSecurity() on cached templates (incomplete fix for CVE-2024-45411) CWE-693 - - 2026-07-14
CVE-2026-46640 Twig: Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilation CWE-94 - - 2026-07-14
CVE-2026-46629 Twig: Unbounded formatter memoisation in twig/intl-extra keyed on template-controlled arguments CWE-770 - - 2026-07-14
CVE-2026-47730 Twig: XSS in profiler HtmlDumper via unescaped template and profile names CWE-79 - - 2026-07-14
CVE-2026-46628 Twig: The `spaceless` filter implicitly marks its output as safe CWE-116 - - 2026-07-14
CVE-2026-46634 Twig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized template name CWE-693 7.7 High 2026-07-14
CVE-2026-46627 Twig: Sandbox resource exhaustion via unbounded `for` / `range()` CWE-400 - - 2026-07-14
CVE-2026-46633 Twig: PHP code injection via `{% use %}` template name CWE-94 - - 2026-07-14
CVE-2026-46639 Twig: Sandbox property and method bypass via object-destructuring assignment CWE-693 - - 2026-07-14
CVE-2026-46635 Twig: Sandbox property allowlist bypass via the `column` filter (array_column on objects) CWE-863 - - 2026-07-14
CVE-2026-47732 Twig Sandbox: multiple `__toString()` policy bypasses via unguarded string coercion points CWE-863 - - 2026-07-14
CVE-2026-24425 Twig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterface CWE-693 8.8 High 2026-05-20
CVE-2025-24374 Twig fixes a security issue where escaping was missing when using null coalesce operator (??) CWE-74 4.3 Medium 2025-01-29
CVE-2024-51754 Unguarded calls to __toString() when nesting an object into an array in Twig CWE-668 2.2 Low 2024-11-06
CVE-2024-51755 Unguarded calls to __isset() and to array-accesses when the sandbox is enabled in Twig CWE-668 2.2 Low 2024-11-06
CVE-2024-45411 Twig has a possible sandbox bypass CWE-693 8.6 High 2024-09-09
CVE-2022-39261 Twig may load a template outside a configured directory when using the filesystem loader CWE-22 7.5 High 2022-09-28
CVE-2022-23614 Code injection in Twig CWE-74 8.8 High 2022-02-04

All 25 known CVE vulnerabilities affecting Twig with full Chinese analysis, references, and POCs where available.