CVE-2026-59192: Cakephp/twig view Cakephp Twig-view Unserialize Twig Filter Vulnerability
MODERATECVE-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
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.
Upgrade cakephp/twig-view to 1.3.3
Upgrade cakephp/twig-view to 2.1.2
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
CVE-2026-59192 Affected Cakephp/twig view Versions
2 component(s)| 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?
Which Cakephp/twig view versions are affected?
What version fixes CVE-2026-59192?
Is cakephp/twig-view affected?
What CWE is associated with CVE-2026-59192?
How can I check Packagist dependencies for CVE-2026-59192?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}