A AegiFlow
HIGHCVSS 9.3EPSS 0.7%

CVE-2026-46633

CVE-2026-46633 updated by NVD

Published
2026-05-21
Modified
2026-11-05
EPSS percentile
53%
Sources
github-advisory, nvd

Summary

Twig is a template language for PHP. Starting in 1.15.1 and prior to 3.26.0, Compiler::string() does not escape single quotes when a template name from a {% use %} tag is placed inside a PHP single-quoted string literal, allowing a crafted template name to terminate the string and inject arbitrary PHP expressions into the compiled cache file. This issue is fixed in version 3.26.0.

Affected packages

EcosystemPackageAffected versionsFixed versions
Packagisttwig/twig—3.26.0

Remediation: Upgrade to 3.26.0 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

Includes data from the National Vulnerability Database (NIST). NVD data is in the public domain; this page is not endorsed by NIST.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.