CVE-2026-54614: cakephp/debug_kit MailPreview Contains Unsafe Reflection Vulnerability
MODERATECVE-2026-54614 is a MODERATE (CVSS 4.3) mailpreview contains unsafe reflection vulnerability (CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')) affecting cakephp/debug_kit libraries in the Packagist ecosystem. The issue involves mailpreview contains unsafe reflection. Remediation is available by upgrading affected packages to version 4.10.3, 5.2.4.
CVE-2026-54614 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2026-54614
To remediate this vulnerability, upgrade all affected cakephp/debug_kit 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/debug_kit to 4.10.3
Upgrade cakephp/debug_kit to 5.2.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for cakephp/debug_kit
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-54614, inspect your project dependencies for cakephp/debug_kit:
inspect dependencies for cakephp/debug_kit
Analyze the terminal output to locate any version of cakephp/debug_kit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.10.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-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection'), where the product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code. In cakephp/debug_kit, 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-54614 Affected cakephp/debug_kit Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cakephp/debug_kit
|
Packagist |
< 4.10.3
|
4.10.3
|
|
cakephp/debug_kit
|
Packagist |
≥ 5.0.0
< 5.2.4
|
5.2.4
|
References
Frequently Asked Questions
What is CVE-2026-54614?
Which cakephp/debug_kit versions are affected?
What version fixes CVE-2026-54614?
Is cakephp/debug_kit affected?
What is the CVSS score of CVE-2026-54614?
What CWE is associated with CVE-2026-54614?
How can I check Packagist dependencies for CVE-2026-54614?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p46m-g734-vpc4",
"modified" : "2026-08-26T15:31:01Z",
"published" : "2026-08-26T15:31:01Z",
"aliases" : [ "CVE-2026-54614" ],
"summary" : "cakephp/debug_kit: MailPreview contains unsafe reflection",
"details" : "### Impact\n\nThe `MailPreview` feature of debugkit is vulnerable to arbitrary constructor execution. For an application to be vulnerable the following conditions must be true:\n\n1. `debug` mode must be enabled.\n2. The hostname must match a 'local' domain or be in an allowlist.\n\n### Patches\n5.2.4 and 4.10.3 contain patches for this issue.\n\n### Workarounds\nEnsure that debugkit is only part of your development dependencies, and that debug mode is disabled in production environments.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/debug_kit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/debug_kit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.2.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cakephp/debug_kit/security/advisories/GHSA-p46m-g734-vpc4"
}, {
"type" : "WEB",
"url" : "https://github.com/cakephp/debug_kit/pull/1078"
}, {
"type" : "WEB",
"url" : "https://github.com/cakephp/debug_kit/commit/7c4d85e984c2334b0f50cd02578a927ff9649e13"
}, {
"type" : "WEB",
"url" : "https://github.com/cakephp/debug_kit/commit/c8a2a9e07d56a5e212d95f6947f370f3b5e6eed6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cakephp/debug_kit"
}, {
"type" : "WEB",
"url" : "https://github.com/cakephp/debug_kit/releases/tag/4.10.3"
}, {
"type" : "WEB",
"url" : "https://github.com/cakephp/debug_kit/releases/tag/5.2.4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-470" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-26T15:31:01Z",
"nvd_published_at" : null
}
}