CVE-2026-54614: cakephp/debug_kit MailPreview Contains Unsafe Reflection Vulnerability

MODERATE
Advisory Identifier: GHSA-p46m-g734-vpc4
CVSS 4.3
CWE-470
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-54614
GHSA Identifier GHSA-p46m-g734-vpc4
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
Affected Product cakephp/debug_kit
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

cakephp/debug_kit fixed: 4.10.3
Upgrade cakephp/debug_kit to 4.10.3
cakephp/debug_kit fixed: 5.2.4
Upgrade cakephp/debug_kit to 5.2.4
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/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

### Impact The `MailPreview` feature of debugkit is vulnerable to arbitrary constructor execution. For an application to be vulnerable the following conditions must be true: 1. `debug` mode must be enabled. 2. The hostname must match a 'local' domain or be in an allowlist. ### Patches 5.2.4 and 4.10.3 contain patches for this issue. ### Workarounds Ensure that debugkit is only part of your development dependencies, and that debug mode is disabled in production environments.

CVE-2026-54614 Affected cakephp/debug_kit Versions

2 component(s)
Fixed Versions:
4.10.35.2.4
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?
CVE-2026-54614 is a security vulnerability in cakephp/debug_kit involving MailPreview contains unsafe reflection under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection').
Which cakephp/debug_kit versions are affected?
Affected versions include releases prior to 4.10.3, 5.2.4 across affected packages: cakephp/debug_kit.
What version fixes CVE-2026-54614?
Upgrading to 4.10.3, 5.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cakephp/debug_kit affected?
Yes, cakephp/debug_kit is affected in releases prior to 4.10.3, 5.2.4. Upgrade your dependency to 4.10.3, 5.2.4 or later.
What is the CVSS score of CVE-2026-54614?
CVE-2026-54614 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-54614?
CVE-2026-54614 is classified under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (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.).
How can I check Packagist dependencies for CVE-2026-54614?
Run the dependency tree command: 'inspect dependencies for cakephp/debug_kit'. 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-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
  }
}