Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-59191: medium-severity vulnerability (CVSS 6.9) in cakephp/twig-view.
What happened
Original description from the source: ### Impact If `FileLoader::findTemplate()` is supplied un-validated user controlled data, arbitrary files can be read. ### Patches 1.3.3 and 2.1.2 contain a fix for this issue. ### Workarounds Don't supply user controlled data to `include` and `extends` tags.
Why it matters
Medium severity, CVSS 6.9.
Affected products and versions
cakephp/twig-view < 1.3.3 (fixed in 1.3.3); cakephp/twig-view >= 2.0.0, < 2.1.2 (fixed in 2.1.2)
| Product | Versions | Fixed in |
|---|---|---|
| cakephp/twig-view | < 1.3.3 | 1.3.3 |
| cakephp/twig-view | >= 2.0.0, < 2.1.2 | 2.1.2 |
Action recommended by the source
Upgrade to a fixed version: 1.3.3, 2.1.2.
Fixed in: 1.3.3, 2.1.2
Sources and references
- https://github.com/advisories/GHSA-hq9r-72jq-2pxp — GHSA
- https://github.com/cakephp/twig-view/security/advisories/GHSA-hq9r-72jq-2pxp — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-59191 — GHSA
- https://github.com/cakephp/twig-view/commit/1c5107c9f562ab285273ceafd1c28bf314faa6d5 — GHSA
- https://github.com/cakephp/twig-view/commit/65f5035ee65e76925242fdca2dc2bb0d732b6c1d — GHSA
- https://github.com/cakephp/twig-view/releases/tag/1.3.3 — GHSA
- https://github.com/cakephp/twig-view/releases/tag/2.1.2 — GHSA
- https://github.com/cakephp/twig-view — OSV
Weaknesses (CWE): CWE-22
Relevant change history
Published
Preliminary advisory published.