Auth bypass in Symfony Twig
CVE-2026-49981
Twig is a template language for PHP. Prior to 3.27.0, the per-template filter, tag, and function allow-list verdict is computed when a Template instance is constructed and can remain cached after sandbox state changes between renders, allowing a later sandboxed render to reuse a template that was originally checked with a different or empty policy. This issue is fixed in version 3.27.0.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N.
EPSS exploit prediction
EPSS: 0.004 (28.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 29th percentile — 28.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Symfony Twig
- Twigphp Twig — versions < 3.27.0
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-49981?
- CVE-2026-49981 is a high-severity vulnerability in Symfony Twig, classified under Protection Mechanism Failure. CVSS score: 8.2/10. Published 2026-07-14.
- How severe is CVE-2026-49981?
- High severity. CVSS v3 base score is 8.2 out of 10.