CVE-2026-59192: Cakephp/twig view Cakephp Twig-view Unserialize Twig Filter Vulnerability

MODERATE
Advisory Identifier: GHSA-48qj-5wxh-m8hc
CWE-502
Published
Advisory Summary

CVE-2026-59192 is a MODERATE cakephp twig-view unserialize twig filter vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Cakephp/twig view libraries in the Packagist ecosystem. The issue involves cakephp twig-view unserialize twig filter allows arbitrary object deserialization. Remediation is available by upgrading affected packages to version 1.3.3, 2.1.2.

CVE-2026-59192 at a Glance

CVE Identifier CVE-2026-59192
GHSA Identifier GHSA-48qj-5wxh-m8hc
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Cakephp/twig view
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-59192

To remediate this vulnerability, upgrade all affected Cakephp/twig view dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

cakephp/twig-view fixed: 1.3.3
Upgrade cakephp/twig-view to 1.3.3
cakephp/twig-view fixed: 2.1.2
Upgrade cakephp/twig-view to 2.1.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for cakephp/twig-view

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-59192, inspect your project dependencies for Cakephp/twig view:

inspect dependencies for cakephp/twig-view

Analyze the terminal output to locate any version of Cakephp/twig view in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Cakephp/twig view, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The `unserialize` filter has no restriction on which classes are allowed. This can be used as a deserialization remote-code-execution gadget. ### Patches 1.3.3 and 2.1.2 contain a fix for this issue. The fix may impact backwards compatibility if you are relying on deserializing PHP objects in your templates. ### Workarounds Don't use the `unserialize` filter.

CVE-2026-59192 Affected Cakephp/twig view Versions

2 component(s)
Fixed Versions:
1.3.32.1.2
Product / Package Ecosystem Affected Versions Fixed Version
cakephp/twig-view
Packagist
< 1.3.3
1.3.3
cakephp/twig-view
Packagist
≥ 2.0.0
< 2.1.2
2.1.2

References

Frequently Asked Questions

What is CVE-2026-59192?
CVE-2026-59192 is a security vulnerability in Cakephp/twig view involving Cakephp twig-view unserialize Twig filter allows arbitrary object deserialization under CWE-502: Deserialization of Untrusted Data.
Which Cakephp/twig view versions are affected?
Affected versions include releases prior to 1.3.3, 2.1.2 across affected packages: cakephp/twig-view.
What version fixes CVE-2026-59192?
Upgrading to 1.3.3, 2.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cakephp/twig-view affected?
Yes, cakephp/twig-view is affected in releases prior to 1.3.3, 2.1.2. Upgrade your dependency to 1.3.3, 2.1.2 or later.
What CWE is associated with CVE-2026-59192?
CVE-2026-59192 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Packagist dependencies for CVE-2026-59192?
Run the dependency tree command: 'inspect dependencies for cakephp/twig-view'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-48qj-5wxh-m8hc",
  "modified" : "2026-11-24T17:42:51Z",
  "published" : "2026-11-24T17:42:51Z",
  "aliases" : [ "CVE-2026-59192" ],
  "summary" : "Cakephp twig-view unserialize Twig filter allows arbitrary object deserialization",
  "details" : "### Impact\nThe `unserialize` filter has no restriction on which classes are allowed. This can be used as a deserialization remote-code-execution gadget.\n\n### Patches\n1.3.3 and 2.1.2 contain a fix for this issue. The fix may impact backwards compatibility if you are relying on deserializing PHP objects in your templates.\n\n### Workarounds\nDon't use the `unserialize` filter.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cakephp/twig-view"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cakephp/twig-view"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cakephp/twig-view/security/advisories/GHSA-48qj-5wxh-m8hc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-59192"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cakephp/twig-view/pull/119"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cakephp/twig-view/pull/120"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cakephp/twig-view/commit/65f5035ee65e76925242fdca2dc2bb0d732b6c1d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cakephp/twig-view/commit/99a59407b138a0efff0ce3896cbf67e71a9c9cd3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cakephp/twig-view"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cakephp/twig-view/releases/tag/1.3.3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cakephp/twig-view/releases/tag/2.1.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-24T17:42:51Z",
    "nvd_published_at" : "2026-11-11T05:19:49Z"
  }
}