CVE-2026-46636
Last modified
CVE-2026-46636 is a high-severity vulnerability rated 8.7/10 on the CVSS scale. Twig is a template language for PHP. From version 1.0.0 to before version 3.27.0, SecurityPolicy::checkMethodAllowed() unconditionally whitelists all method calls on instances of Twig\Markup. EPSS estimates a 0.57% chance of exploitation in the next 30 days.
Description
Twig is a template language for PHP. From version 1.0.0 to before version 3.27.0, SecurityPolicy::checkMethodAllowed() unconditionally whitelists all method calls on instances of Twig\Markup. Twig\Markup is not final, so subclasses inherit the bypass. An application that passes an object of a Markup-derived class into a sandboxed template (typically to mark a chunk of HTML as safe) inadvertently exposes every public method of that subclass to template authors, regardless of the configured allowedMethods list. This issue has been patched in version 3.27.0.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| twigphp | Twig | >= 1.0.0, < 3.27.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-46636?
How severe is CVE-2026-46636?
How do I fix CVE-2026-46636?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- 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-46628Twig is a template language for PHP. Prior to 3.26.0, the de…5.4
- CVE-2026-46629Twig is a template language for PHP. Prior to 3.26.0, twig/i…6.5
- CVE-2026-4663Rejected reason: ** REJECT ** DO NOT USE THIS CANDIDATE NUMB…
- CVE-2026-46633Twig is a template language for PHP. Prior to 3.26.0, Compil…9.8
- CVE-2026-46634Twig is a template language for PHP. From 3.9.0 until 3.26.0…9.8
- CVE-2026-46635Twig is a template language for PHP. Prior to 3.26.0, the co…4.3
- CVE-2026-46637Twig is a template language for PHP. Prior to 3.26.0, severa…5.4
- CVE-2026-46638Twig is a template language for PHP. Prior to 3.26.0, {% san…8.1
- CVE-2026-46639Twig is a template language for PHP. From 3.24.0 until 3.26.…6.5
- CVE-2026-4664The Customer Reviews for WooCommerce plugin for WordPress is…5.3
- CVE-2026-46640Twig is a template language for PHP. From 3.15.0 until 3.26.…8.8
- CVE-2026-46642draw.io is a configurable diagramming and whiteboarding appl…6.1
Are you affected by CVE-2026-46636?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
