{"id":"CVE-2026-59191","aliases":["CVE-2026-59191","GHSA-hq9r-72jq-2pxp"],"related":[],"kind":"vulnerability","state":"published","title":"TwigView: FileLoader is vulnerable to arbitrary file read","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-11-11T04:24:36.256Z","modified":"2026-11-24T22:45:04.241Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 1.3.3","status":"affected"},{"version":">= 2.0.0, < 2.1.2","status":"affected"}],"vendor":"cakephp","product":"twig-view","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.3"}],"ecosystem":"Packagist","package":"cakephp/twig-view","purl":"pkg:composer/cakephp/twig-view","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.1.2"}],"ecosystem":"Packagist","package":"cakephp/twig-view","purl":"pkg:composer/cakephp/twig-view","source":"ghsa"}],"references":[{"url":"https://github.com/cakephp/twig-view/security/advisories/GHSA-hq9r-72jq-2pxp","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cakephp/twig-view/releases/tag/1.3.3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cakephp/twig-view/releases/tag/2.1.2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59191","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cakephp/twig-view/commit/1c5107c9f562ab285273ceafd1c28bf314faa6d5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cakephp/twig-view/commit/65f5035ee65e76925242fdca2dc2bb0d732b6c1d","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cakephp/twig-view","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-12T16:37:57.947Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59191","url":"https://www.cve.org/CVERecord?id=CVE-2026-59191","licence":"CVE Terms of Use","modified":"2026-11-12T17:58:16.887Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hq9r-72jq-2pxp","url":"https://github.com/advisories/GHSA-hq9r-72jq-2pxp","licence":"CC-BY-4.0","modified":"2026-11-24T22:45:04.241Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59191","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59191","licence":"Public domain","modified":"2026-11-12T22:18:51.470Z"}],"updatedAt":"2026-11-25T22:59:50.316Z","epss":{"score":0.00622,"percentile":0.51144,"date":"2026-12-01T12:00:22.000Z"}}