CVE-2026-133772
Last modified
CVE-2026-133772 is a low-severity vulnerability rated 2.3/10 on the CVSS scale. The guard tag compiles only one of its branches, depending on whether a callable exists. The other branch was still parsed, though. EPSS estimates a 0.53% chance of exploitation in the next 30 days.
Description
The guard tag compiles only one of its branches, depending on whether a callable exists. The other branch was still parsed, though. The extends, use, macro and block tags in it registered their effects on the template. The sandbox doesn't see these tags, since that branch isn't compiled. A sandboxed template allowed to use guard could therefore extend a template, import blocks and define macros, while the policy doesn't allow these tags: {% guard filter upper %}{% else %}{% extends "parent.html" %}{% endguard %} The templates reached this way come from the loader of the sandbox, and they are sandboxed too. What the branch that isn't selected registers on the parser is now discarded.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Twig | twig/twig | >= 3.15.0, < 3.31.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-133772?
How severe is CVE-2026-133772?
How do I fix CVE-2026-133772?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-133767When the parent of an embed tag was an expression other than…5.3
- CVE-2026-133768The join filter converted a value that isn't iterable with (…5.3
- CVE-2026-133769Cva::apply() converted the values of variants, default varia…2.3
- CVE-2026-13377Improper Neutralization of Input During Web Page Generation …4.8
- CVE-2026-133770The sandbox allows every method of Twig\Markup objects, incl…2.1
- CVE-2026-133771The escaper considered x.attr, x['key'] and x.method() safe …2.3
- CVE-2026-133773The html_to_markdown filter of twig/markdown-extra keeps an …2.3
- CVE-2026-133774A live component protected by #[IsGranted], on its class or …6.3
- CVE-2026-133775The fix for CVE-2026-55877 (GHSA-6v8j-33hc-mv84) sanitizes t…5.3
- CVE-2026-133776The fix for CVE-2026-55877 (GHSA-6v8j-33hc-mv84) sanitizes t…5.3
- CVE-2026-133777The fix for CVE-2026-55877 (GHSA-6v8j-33hc-mv84) sanitizes t…5.3
- CVE-2026-133778#[AsLiveComponent(route: '...')] makes a live component send…6.3
Are you affected by CVE-2026-133772?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
