Vulnerability in Symfony Twig
CVE-2026-46638
Twig is a template language for PHP. Prior to 3.26.0, {% sandbox %}{% include %} can include a template that was previously loaded outside the sandbox without re-invoking checkSecurity(), allowing the cached template to use tags, filters, and functions that should have been denied by SecurityPolicy::checkSecurity(). This issue is fixed in version 3.26.0.
EPSS: 0.005 (38.9th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
Affected products
- Symfony Twig
- Twigphp Twig — versions < 3.26.0
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Vendor Advisory)
- security-advisories@github.com (Patch, x_refsource_MISC)
- security-advisories@github.com (x_refsource_MISC, Release Notes)
Frequently asked questions
- What is CVE-2026-46638?
- CVE-2026-46638 is a high-severity vulnerability in Symfony Twig, classified under Protection Mechanism Failure. CVSS score: 8.1/10. Published 2026-07-14.
- How severe is CVE-2026-46638?
- High severity. CVSS v3 base score is 8.1 out of 10.