# CVE-2026-54614: CakePHP DebugKit MailPreview unsafe reflection

Source: https://junglewise.ai/threats/cve-2026-54614-cakephp-debugkit-mailpreview-unsafe-reflection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-26. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-54614 · Severity: medium · CVSS 4.3 · Published 2026-08-26

CakePHP DebugKit is a development debugging utility included in CakePHP applications. The MailPreview component uses reflection unsafely, allowing attackers to execute arbitrary code if the application runs in debug mode with certain hostname conditions. In production environments, this should have no impact as debug mode should be disabled, but misconfigured development deployments could be compromised.

Vendors: [Cakephp](https://junglewise.ai/threats/vendors/cakephp), [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2026-54614 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-54614 being exploited in the wild.

**How severe is CVE-2026-54614?** Medium severity, with a CVSS score of 4.3, published 26 August 2026.

**Which products and versions are affected?** Cakephp DebugKit < 4.10.3, >= 5.0.0 and < 5.2.4; cakephp/debug_kit (Packagist) ECOSYSTEM:introduced=0,fixed=4.10.3.

**Is there a fix for CVE-2026-54614?** Yes. cakephp/debug_kit (Packagist): upgrade to 4.10.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-54614 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-54614?** Check whether you run Cakephp DebugKit or cakephp/debug_kit (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- cakephp/debug_kit (Packagist): upgrade to 4.10.3 or later

  ```sh
  composer require cakephp/debug_kit:^4.10.3
  ```


## Technical details

The vulnerability exists in the MailPreview component of CakePHP DebugKit and is classified as unsafe reflection (CWE-470). The root cause is the use of externally-controlled input to select which classes or code to instantiate via PHP reflection, without sufficient validation. Attack vector is network-based; exploitation requires: (1) debug mode enabled, and (2) hostname matching a 'local' domain or being in a whitelist. Privileges required are low (low privilege access sufficient). An attacker can achieve arbitrary constructor execution, resulting in potential code execution. Patches are available in versions 4.10.3 and 5.2.4.

## Affected products

- CakePHP DebugKit < 4.10.3, >= 5.0.0 and < 5.2.4

## Identifiers

- CVE-2026-54614
- GHSA-p46m-g734-vpc4

## Timeline

- 2026-06-16: disclosed: Published to GitHub Advisory Database
- 2026-06-16: patched: Patches released in versions 4.10.3 and 5.2.4
- 2026-08-26: advisory: Updated in GitHub Advisory Database

## References

- [https://api.github.com/users/edorian](https://api.github.com/users/edorian)
- [https://github.com/edorian](https://github.com/edorian)
- [https://api.github.com/users/edorian/gists%7B/gist_id%7D](https://api.github.com/users/edorian/gists%7B/gist_id%7D)
- [https://api.github.com/users/edorian/repos](https://api.github.com/users/edorian/repos)
- [https://avatars.githubusercontent.com/u/247397?v=4](https://avatars.githubusercontent.com/u/247397?v=4)
- [https://api.github.com/users/edorian/events%7B/privacy%7D](https://api.github.com/users/edorian/events%7B/privacy%7D)
