CVE-2026-59191: TwigView FileLoader may allow arbitrary file reads through user-controlled template paths
Impact If FileLoader::findTemplate() is supplied un-validated user controlled data, arbitrary files can be read. Patches 1.3.3 and 2.1.2 contain a fix for this issue. Workarounds Don't supply user controlled data to include and extends tags.
Published Nov 24, 2026
Affected packages
cakephp/twig-view
- Ecosystem
- Composer (PHP)
- Affected
- < 1.3.3
- Fixed in
- 1.3.3
- Check
composer show cakephp/twig-view
cakephp/twig-view
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.0.0, < 2.1.2
- Fixed in
- 2.1.2
- Check
composer show cakephp/twig-view
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
If FileLoader::findTemplate() is supplied un-validated user controlled data, arbitrary files can be read.
Patches
1.3.3 and 2.1.2 contain a fix for this issue.
Workarounds
Don't supply user controlled data to include and extends tags.
Credited to edorian.
References
- https://github.com/cakephp/twig-view/security/advisories/GHSA-hq9r-72jq-2pxp
- https://nvd.nist.gov/vuln/detail/CVE-2026-59191
- https://github.com/cakephp/twig-view/commit/1c5107c9f562ab285273ceafd1c28bf314faa6d5
- https://github.com/cakephp/twig-view/commit/65f5035ee65e76925242fdca2dc2bb0d732b6c1d
- https://github.com/cakephp/twig-view/releases/tag/1.3.3
- https://github.com/cakephp/twig-view/releases/tag/2.1.2
- https://github.com/advisories/GHSA-hq9r-72jq-2pxp
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
