PatchSiren cyber security CVE debrief
CVE-2026-133770 Twig CVE debrief
CVE-2026-133770 is a vulnerability in the Twig templating engine that allows sandboxed templates to rewrite application-owned `Markup` objects through their constructor. This can lead to content replacement in trusted pages that aren't sandboxed. The vulnerability has a CVSS score of 2.1 and is considered low severity. Affected product deployments should be reviewed for exposure, and owners should prioritize verifying the version of Twig in use and applying the patch from the vendor. The vulnerability allows sandboxed templates to call the constructor of `Markup` objects and replace their content, potentially leading to content replacement in trusted pages.
- Vendor
- Twig
- Product
- twig/twig
- CVSS
- LOW 2.1
- 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 who use the Twig templating engine in their applications should care about this vulnerability. They should verify the version of Twig in use and apply the patch from the vendor.
Why it matters
CVE-2026-133770 is a vulnerability in the Twig templating engine that allows sandboxed templates to rewrite application-owned `Markup` objects through their constructor. Defenders should prioritize verifying the version of Twig in use and applying the patch from the vendor.
- Content replacement in trusted pages that aren't sandboxed
- Potential for exploitation through sandboxed templates
- Need for verification of Twig version and application of patch
Technical summary
The vulnerability allows sandboxed templates to call the constructor of `Markup` objects and replace their content. This can lead to content replacement in trusted pages that aren't sandboxed. The vulnerability affects the Twig templating engine and has a CVSS score of 2.1. Defenders should prioritize verifying the version of Twig in use and applying the patch from the vendor. They should also review their application's use of `Markup` objects and ensure that they are not vulnerable to content replacement. The vulnerability can be exploited through sandboxed templates, and defenders should monitor for potential exploitation attempts.
Defensive priority
Defenders should prioritize verifying the version of Twig in use and applying the patch from the vendor. They should also review their application's use of `Markup` objects and ensure that they are not vulnerable to content replacement.
Recommended defensive actions
- Verify the version of Twig in use and apply the patch from the vendor
- Review application use of `Markup` objects and ensure they are not vulnerable to content replacement
- Monitor for potential exploitation attempts
- 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 evidence for this vulnerability comes from the CVE Program record, the NVD vulnerability detail page, and the source item from the cve_program_cvelist_v5. The vendor has also provided a patch for the vulnerability.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-133770 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-133770
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-133770 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-133770
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Sandboxed templates can rewrite application-owned `Markup` objects through their constructor
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/133xxx/CVE-2026-133770.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://symfony.com/cve-2026-133770
Supplemental source - vendor-advisory
-
Source reference
Unverified legacy reference
URL: https://github.com/twigphp/Twig/security/advisories/GHSA-r34x-hh9h-9q9c
Supplemental source - vendor-advisory
-
Source reference
Unverified legacy reference
URL: https://github.com/twigphp/Twig/commit/97b2e40b1165e6a42a197843f96ccb0a55f46f34
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.