CVE-2026-59191 — twig-view
Fix: cakephp/twig-view@1c5107cCVE-2026-59191 is a Path Traversal vulnerability in cakephp/twig-view. A fix is available for cakephp/twig-view — see the affected versions and patch details below.
TwigView: FileLoader is vulnerable to arbitrary file read
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-59191.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
cakephp/twig-view🐘cakephp/twig-viewReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | cakephp/twig-view | all versions | 1.3.3composer require cakephp/twig-view:^1.3.3 |
| 🐘Packagist | cakephp/twig-view | ≥ 2.0.0&&< 2.1.2 | 2.1.2composer require cakephp/twig-view:^2.1.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for cakephp/twig-view, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update cakephp/twig-view to 1.3.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-59191 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Frequently Asked Questions
Is CVE-2026-59191 in your dependencies?
Find it across Packagist, including transitive dependencies.