CVE-2026-59191
TwigView FileLoader may allow arbitrary file reads through user-controlled template paths
6.9
Description
TwigView plugin for CakePHP provides wrappers for common View operations and extensions that expose CakePHP functions and jasny/twig-extensions helpers. Prior to versions 1.3.3 and 2.1.2, if FileLoader::findTemplate() is supplied un-validated user controlled data, arbitrary files can be read. This issue has been patched in versions 1.3.3 and 2.1.2.
Affected products and versions
| Product / package | Ecosystem / vendor | Versions | Fixed in | Source |
|---|---|---|---|---|
| cakephp/twig-view | composer | < 1.3.3 | 1.3.3 | GitHub |
| cakephp/twig-view | composer | >= 2.0.0, < 2.1.2 | 2.1.2 | GitHub |