{"id":"GHSA-hq9r-72jq-2pxp","summary":"TwigView FileLoader may allow arbitrary file reads through user-controlled template paths","details":"### Impact\nIf `FileLoader::findTemplate()` is supplied un-validated user controlled data, arbitrary files can be read.\n\n### Patches\n1.3.3 and 2.1.2 contain a fix for this issue.\n\n### Workarounds\nDon't supply user controlled data to `include` and `extends` tags.","aliases":["CVE-2026-59191"],"modified":"2026-11-24T22:45:04.174021024Z","published":"2026-11-24T22:39:23Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-11-24T22:39:23Z","nvd_published_at":"2026-11-11T05:19:49Z","cwe_ids":["CWE-22"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/cakephp/twig-view/security/advisories/GHSA-hq9r-72jq-2pxp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59191"},{"type":"WEB","url":"https://github.com/cakephp/twig-view/commit/1c5107c9f562ab285273ceafd1c28bf314faa6d5"},{"type":"WEB","url":"https://github.com/cakephp/twig-view/commit/65f5035ee65e76925242fdca2dc2bb0d732b6c1d"},{"type":"PACKAGE","url":"https://github.com/cakephp/twig-view"},{"type":"WEB","url":"https://github.com/cakephp/twig-view/releases/tag/1.3.3"},{"type":"WEB","url":"https://github.com/cakephp/twig-view/releases/tag/2.1.2"}],"affected":[{"package":{"name":"cakephp/twig-view","ecosystem":"Packagist","purl":"pkg:composer/cakephp/twig-view"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.3"}]}],"versions":["1.0.0","1.0.0-RC1","1.0.0-RC2","1.0.0-beta1","1.0.0-beta2","1.0.1","1.0.2","1.1.0","1.1.1","1.2.0","1.3.0","1.3.1","1.3.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-hq9r-72jq-2pxp/GHSA-hq9r-72jq-2pxp.json"}},{"package":{"name":"cakephp/twig-view","ecosystem":"Packagist","purl":"pkg:composer/cakephp/twig-view"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.1.2"}]}],"versions":["2.0.0","2.0.1","2.0.2","2.0.3","2.1.0","2.1.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-hq9r-72jq-2pxp/GHSA-hq9r-72jq-2pxp.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"}]}