CVE-2026-59191

TwigView FileLoader may allow arbitrary file reads through user-controlled template paths

Medium published · updated · also known as GHSA-HQ9R-72JQ-2PXP

6.9
CVSS score out of 10 · NVD (github.com)

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 products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
cakephp/twig-view composer < 1.3.31.3.3 GitHub
cakephp/twig-view composer >= 2.0.0, < 2.1.22.1.2 GitHub

References