Skip to main content
VulnerabilityPublished

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

Affects cakephp/twig-viewSource GCVE Database

0
Compare
Authoritative record:CVE-2026-59191· Medium 6.9

Not known to be exploited · CVSS 6.9 Medium : upgrade to 1.3.3 when convenient.

Data as of 24 Nov 2026, 23:25 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.06.9
Patch
Available – fixed in 1.3.3, 2.1.2
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 11 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade cakephp/twig-view to 1.3.3; cakephp/twig-view to 2.1.2.

Affected software

ProductAffectedFixed in
Packagistcakephp/twig-viewAffected
  • <1.3.3
Fixed in
  • 1.3.3
Packagistcakephp/twig-viewAffected
  • >=2.0.0 <2.1.2
Fixed in
  • 2.1.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to cakephp/twig-view version 1.3.3 or later, or 2.1.2 or later, where this vulnerability is fixed. As a workaround, avoid passing user-controlled data to the include and extends template tags to prevent arbitrary file reads.

Description

The TwigView FileLoader component in cakephp/twig-view versions prior to 1.3.3 and between 2.0.0 and before 2.1.2 contains a vulnerability where unvalidated user input to the findTemplate() method can lead to arbitrary file reads. This can occur if user-controlled data is supplied to template inclusion tags such as include or extends. Fixed versions 1.3.3 and 2.1.2 address this issue.

References

Community reviews

Loading reviews…