AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

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

mediumCVSS 4.0 6.9GHSA-hq9r-72jq-2pxp

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.

Published Nov 24, 2026

Affected packages

cakephp/twig-view

Ecosystem
Composer (PHP)
Affected
< 1.3.3
Fixed in
1.3.3
Check
composer show cakephp/twig-view

cakephp/twig-view

Ecosystem
Composer (PHP)
Affected
>= 2.0.0, < 2.1.2
Fixed in
2.1.2
Check
composer show cakephp/twig-view

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to edorian.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries