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.

EPSS: 0.004 (28.9th percentile) — read the EPSS interpretation.

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.

Affected products

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.