PatchSiren cyber security CVE debrief
CVE-2026-133767 Twig CVE debrief
CVE-2026-133767 is a MEDIUM-severity vulnerability in the Twig templating engine. A sandboxed template allowed to use embed could call any function, filter or test, and any __toString() method due to a bypass via a dynamic embed parent expression. This vulnerability allows potential code execution through bypass of sandbox restrictions. Defenders should verify exposure, especially in deployments using user-supplied input in template expressions, and ensure version 3.31.1 or later of Twig/twig is used.
- Vendor
- Twig
- Product
- twig/twig
- CVSS
- MEDIUM 5.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-24
- Original CVE updated
- 2026-11-24
- Advisory published
- 2026-11-24
- Advisory updated
- 2026-11-24
Who should care
Defenders responsible for Twig deployments, especially those using user-supplied input in template expressions, should assess exposure and verify their version of Twig/twig. Defenders should prioritize verifying exposure in their Twig deployments and ensure they are using version 3.31.1 or later of Twig/twig. This includes reviewing and updating template expressions to prevent potential bypass.
Why it matters
CVE-2026-133767 is a MEDIUM-severity vulnerability in the Twig templating engine that allows a sandboxed template to bypass restrictions and potentially execute code. Defenders should verify exposure, especially in deployments using user-supplied input in template expressions, and ensure version 3.31.1 or later of Twig/twig is used.
- Potential code execution through bypass of sandbox restrictions
- Verification of exposure in Twig deployments is required
- Remediation priority for versions prior to 3.31.1
Technical summary
The vulnerability allows a sandboxed template to call any function, filter or test, and any __toString() method due to a bypass via a dynamic embed parent expression. The parent of an embed tag was not properly checked by the sandbox, allowing for potential code execution. This vulnerability affects Twig deployments, especially those using user-supplied input in template expressions. Defenders should prioritize verifying exposure and ensure they are using version 3.31.1 or later of Twig/twig. The vulnerability has been assessed as MEDIUM-severity.
Defensive priority
Defenders should prioritize verifying exposure in their Twig deployments, especially where user-supplied input is used in template expressions, and ensure they are using version 3.31.1 or later of Twig/twig.
Recommended defensive actions
- Verify exposure in Twig deployments, especially where user-supplied input is used in template expressions
- Ensure version 3.31.1 or later of Twig/twig is used
- Review and update template expressions to prevent potential bypass
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
Evidence notes
The CVE Program record, NVD vulnerability detail, and source item provide official details on the vulnerability. Vendor advisories and a patch are available. The vulnerability has been assessed as MEDIUM-severity. The source item and CVE Program record provide details on the affected product and component. Defenders should verify exposure and review compensating controls.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-133767 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-133767
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-133767 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-133767
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Sandbox allow-list and `__toString()` bypass via a dynamic `embed` parent expression
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/133xxx/CVE-2026-133767.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://symfony.com/cve-2026-133767
Supplemental source - vendor-advisory
-
Source reference
Unverified legacy reference
URL: https://github.com/twigphp/Twig/security/advisories/GHSA-fmp9-6wxr-cfmq
Supplemental source - vendor-advisory
-
Source reference
Unverified legacy reference
URL: https://github.com/twigphp/Twig/commit/fe395ad247b8e6c6f34f39bc211119ecb11f80b3
Supplemental source - patch
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.