Skip to content
DayZeroHub
Medium Not yet writtenCVSS 6.9GHSA-hq9r-72jq-2pxpCVE-2026-59191

CVE-2026-59191: TwigView FileLoader may allow arbitrary file reads through user-controlled template paths

cakephp/twig-view

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)

ProductVersionsFixed in
cakephp/twig-view< 1.3.31.3.3
cakephp/twig-view>= 2.0.0, < 2.1.22.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

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-22

Relevant change history

  1. Published

    Preliminary advisory published.