CVE-2026-59191: Twig view · TwigView FileLoader may allow arbitrary file reads through user-controlled template paths
Affects cakephp/twig-viewSource GCVE Database
Not known to be exploited · CVSS 6.9 Medium : upgrade to 1.3.3 when convenient.
Data as of 24 Nov 2026, 23:25 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 6.9 |
|---|
- Patch
- Available – fixed in 1.3.3, 2.1.2
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 11 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade cakephp/twig-view to 1.3.3; cakephp/twig-view to 2.1.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistcakephp/twig-view | Affected
| Fixed in
|
| Packagistcakephp/twig-view | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to cakephp/twig-view version 1.3.3 or later, or 2.1.2 or later, where this vulnerability is fixed. As a workaround, avoid passing user-controlled data to the include and extends template tags to prevent arbitrary file reads.
Description
The TwigView FileLoader component in cakephp/twig-view versions prior to 1.3.3 and between 2.0.0 and before 2.1.2 contains a vulnerability where unvalidated user input to the findTemplate() method can lead to arbitrary file reads. This can occur if user-controlled data is supplied to template inclusion tags such as include or extends. Fixed versions 1.3.3 and 2.1.2 address this issue.
References
- github.com/cakephp/twig-view/security/advisories/GHSA-hq9r-72jq-2pxp (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-59191 (opens in a new tab)
- github.com/cakephp/twig-view/commit/1c5107c9f562ab285273ceafd1c28bf314faa6d5 (opens in a new tab)
- github.com/cakephp/twig-view/commit/65f5035ee65e76925242fdca2dc2bb0d732b6c1d (opens in a new tab)
- github.com/cakephp/twig-view (opens in a new tab)
- github.com/cakephp/twig-view/releases/tag/1.3.3 (opens in a new tab)
- github.com/cakephp/twig-view/releases/tag/2.1.2 (opens in a new tab)