Live threats

All CVEs / cakephp

CVE-2026-59191cakephp twig-view

Arbitrary File Read in TwigView for CakePHP

Medium 6.9 No auth needed

Priority
58
CVSS 4.0
6.9
EPSS
—
Auth required
No
Published
Nov 11, 2026
Updated
Nov 12, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

The TwigView plugin for CakePHP allows arbitrary file reads if FileLoader::findTemplate() receives unvalidated user-controlled data. An unauthenticated attacker can exploit this vulnerability to access sensitive system files. The issue has been patched in versions 1.3.3 and 2.1.2.

Show the original NVD text

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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 1.3.3, 2.1.2

Update the TwigView plugin to version 1.3.3 or 2.1.2 depending on your branch.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for twig-view.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist cakephp/twig-view < 1.3.3 1.3.3 composer require "cakephp/twig-view:^1.3.3"
Packagist cakephp/twig-view ≥ 2.0.0 < 2.1.2 2.1.2 composer require "cakephp/twig-view:^2.1.2"

Per OSV / GitHub Advisories (GHSA-hq9r-72jq-2pxp). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

On social media

1 person and 1 post on Bluesky in the last 30 days.

Most recent posts, without bots or automated feeds. The text belongs to its authors. Search on Bluesky

Official sources

References

Links published by the sources. Open them with care.