{"id":"CVE-2026-59191","kind":"vulnerability","aliases":["CVE-2026-59191"],"related":[],"title":"TwigView for CakePHP: unvalidated template path lets attackers read arbitrary files","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.","summary":"TwigView is a CakePHP plugin that wraps View operations and Twig helpers. When unvalidated user input reaches FileLoader::findTemplate(), an attacker can read arbitrary files on the server.","severity":"medium","cvss":6.9,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["cakephp","package","php","twigview"],"not_affected_if":["no-twigview","validated-input"],"how_to_check":"- Check the installed TwigView version in `composer.lock` or with `composer show dereuromark/cakephp-twigview`.\n- Look for calls to `FileLoader::findTemplate()` that receive request data without validation.","fix":"- TwigView `1.3.3` for the 1.x line.\n- TwigView `2.1.2` for the 2.x line.","status":"open","published_at":"2026-11-11T05:19:49+00:00","first_seen_at":"2026-11-11T05:25:39+00:00","triaged_at":"2026-11-11T05:26:42+00:00","updated_at":"2026-11-11T05:26:42+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-11-11T05:26:42Z","model":"claude-haiku-5-5","output":{"fix":"- TwigView `1.3.3` for the 1.x line.\n- TwigView `2.1.2` for the 2.x line.","reach":"internet","title":"TwigView for CakePHP: unvalidated template path lets attackers read arbitrary files","impact":"medium","summary":"TwigView is a CakePHP plugin that wraps View operations and Twig helpers. When unvalidated user input reaches FileLoader::findTemplate(), an attacker can read arbitrary files on the server.","audience":"developers","category":"package","nicknames":[],"who_cares":["cakephp","php","twigview"],"confidence":0.7,"fix_status":"available","needs_auth":"unknown","worst_case":"arbitrary server files readable by the attacker","analyst_note":"","how_to_check":"- Check the installed TwigView version in `composer.lock` or with `composer show dereuromark/cakephp-twigview`.\n- Look for calls to `FileLoader::findTemplate()` that receive request data without validation.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["no-twigview","validated-input"],"who_is_affected":"Applications that use the TwigView plugin with CakePHP and pass user-controlled data into template lookups. Apps that do not use TwigView, or that never feed request data into template names, are not exposed.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"unknown"},"cost_usd":0.000712,"input_tokens":4632,"output_tokens":497,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-2026':13A,16A '-59191':14A,17A '1.3.3':72C,98C '2.1.2':74C,100C 'arbitrari':10A,45B,86C 'attack':8A,42B 'cakephp':3A,18B,25B,53C,64C 'common':57C 'control':84C 'cve':12A,15A 'data':85C 'expos':63C 'extens':61C 'file':11A,46B,87C 'fileload':39B,76C 'findtempl':40B,77C 'function':65C 'helper':33B,68C 'input':37B 'issu':92C 'jasny/twig-extensions':67C 'let':7A 'oper':30B,59C 'packag':19B 'patch':95C 'path':6A 'php':20B 'plugin':26B,51C 'prior':69C 'provid':54C 'reach':38B 'read':9A,44B,90C 'server':49B 'suppli':79C 'templat':5A 'twig':32B 'twigview':1A,21B,22B,50C 'un':81C 'un-valid':80C 'unvalid':4A,35B 'user':36B,83C 'valid':82C 'version':71C,97C 'view':29B,58C 'wrap':28B 'wrapper':55C","nicknames":[],"mitigations":[],"who_affected":"Applications that use the TwigView plugin with CakePHP and pass user-controlled data into template lookups. Apps that do not use TwigView, or that never feed request data into template names, are not exposed.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["cakephp","medium","package","php","twigview"],"campaign_type":null,"search_a":"'-2026':13A,16A '-59191':14A,17A 'arbitrari':10A 'attack':8A 'cakephp':3A 'cve':12A,15A 'file':11A 'let':7A 'path':6A 'read':9A 'templat':5A 'twigview':1A 'unvalid':4A","search_b":"'arbitrari':45B 'attack':42B 'cakephp':18B,25B 'file':46B 'fileload':39B 'findtempl':40B 'helper':33B 'input':37B 'oper':30B 'packag':19B 'php':20B 'plugin':26B 'reach':38B 'read':44B 'server':49B 'twig':32B 'twigview':21B,22B 'unvalid':35B 'user':36B 'view':29B 'wrap':28B","search_c":"'1.3.3':72C,98C '2.1.2':74C,100C 'arbitrari':86C 'cakephp':53C,64C 'common':57C 'control':84C 'data':85C 'expos':63C 'extens':61C 'file':87C 'fileload':76C 'findtempl':77C 'function':65C 'helper':68C 'issu':92C 'jasny/twig-extensions':67C 'oper':59C 'patch':95C 'plugin':51C 'prior':69C 'provid':54C 'read':90C 'suppli':79C 'twigview':50C 'un':81C 'un-valid':80C 'user':83C 'valid':82C 'version':71C,97C 'view':58C 'wrapper':55C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-07-03T03:02:26+00:00","kev":null,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-59191","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59191","severity":null,"published_at":"2026-11-11T05:19:49+00:00","modified_at":"2026-11-11T05:19:49+00:00","first_seen_at":"2026-11-11T05:25:39+00:00","fetched_at":"2026-11-11T05:25:39+00:00","note":null}],"documents":[{"id":122851,"url":"https://github.com/cakephp/twig-view/releases/tag/1.3.3","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":122852,"url":"https://github.com/cakephp/twig-view/releases/tag/2.1.2","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":122853,"url":"https://github.com/cakephp/twig-view/security/advisories/GHSA-hq9r-72jq-2pxp","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-07-03T03:02:26+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}