Intel

AIKIDO-2026-910211

cakephp/twig-view is vulnerable to Path Traversal

CVE-2026-59191Published Jul 10, 2026
July 10, 2026

59

CVE Score

Medium

Path Traversal

Are you affected? Scan for Free

TL;DR

The FileLoader::findTemplate() method resolves template names for the include and extends tags without confining the resolved path to the allowed template directories. When an application passes user-controlled data as a template name, the loader can resolve paths outside the intended template roots and read arbitrary files on the server. The file contents are then returned through the template engine, exposing sensitive server files. The fix restricts template resolution to the configured template and plugin paths and rejects names that resolve outside them.

How do I fix this?

Upgrade the cakephp/twig-view library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application passes user-controlled data to the include or extends tags.

Versions

1.0.1 - 1.3.2

Fixed in 1.3.3

2.0.0 - 2.1.1

Fixed in 2.1.2

Background info

cakephp/twig-view is vulnerable to Path Traversal in versions 1.0.1 - 1.3.2 and 2.0.0 - 2.1.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea