PatchSiren cyber security CVE debrief
CVE-2026-133763 Twig CVE debrief
A sandbox bypass vulnerability exists in Twig, a templating engine for PHP. The vulnerability occurs when the `is true` test is used, allowing a sandboxed template to print an object through a denied `toString()` method. This could potentially lead to data exposure in certain scenarios. Defenders should assess their exposure, especially in deployments processing user-supplied data, and prioritize verification. The vulnerability is addressed in version 3.31.1 or later. Additional context can be found in the CVE Program record and NVD vulnerability detail.
- 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 templating engine deployments, especially those processing user-supplied data, should assess exposure and prioritize verification. This includes operators, platform administrators, vulnerability management teams, and security teams. They should review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
Why it matters
Defenders should prioritize verifying exposure in templating engine deployments, especially where user-supplied data is processed, due to a sandbox bypass vulnerability in Twig.
- Potential data exposure through bypassed sandbox
- Verification of templating engine configurations required
Technical summary
The vulnerability occurs when the `is true` test is used in a sandboxed template, allowing it to print an object through a denied `toString()` method. This could potentially lead to data exposure in certain scenarios. The vulnerability is addressed in version 3.31.1 or later. Defenders should assess their exposure, especially in deployments processing user-supplied data, and prioritize verification. Additional context can be found in the CVE Program record and NVD vulnerability detail. The vulnerability class is a sandbox bypass, and the likely operational impact is data exposure.
Defensive priority
Defenders should prioritize verifying exposure in templating engine deployments, especially where user-supplied data is processed.
Recommended defensive actions
- Verify exposure in templating engine deployments, especially where user-supplied data is processed.
- Update to version 3.31.1 or later.
- Restrict user-supplied data processing.
- Review compensating controls for exposed systems while remediation is scheduled and verified.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
Evidence notes
The CVE Program record and NVD vulnerability detail provide official information on the vulnerability. The source item and supplemental sources offer additional context. Evidence limits and source grounding indicate that defenders should verify exposure in templating engine deployments, especially where user-supplied data is processed. The vulnerability is addressed in version 3.31.1 or later.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-133763 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-133763
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-133763 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-133763
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Sandbox `__toString()` policy bypass via the `is true` test
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/133xxx/CVE-2026-133763.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://symfony.com/cve-2026-133763
Supplemental source - vendor-advisory
-
Source reference
Unverified legacy reference
URL: https://github.com/twigphp/Twig/security/advisories/GHSA-567w-cx2v-jc85
Supplemental source - vendor-advisory
-
Source reference
Unverified legacy reference
URL: https://github.com/twigphp/Twig/commit/a41bd2dd466d771cc384b9730be6190eb5a4f4d0
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.