ADVISORIES

GitHub Advisory Database

GHSA-p46m-g734-vpc4

cakephp/debug_kit: MailPreview contains unsafe reflection

Moderate CVE-2026-54614

Details

Impact

The MailPreview feature of debugkit is vulnerable to arbitrary constructor execution. For an application to be vulnerable the following conditions must be true:

  • debug mode must be enabled.
  • 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.

Affected packages

EcosystemPackageAffected versions
Packagistcakephp/debug_kit
All versions before 4.10.3 (fixed in 4.10.3)
Packagistcakephp/debug_kit
From 5.0.0 before 5.2.4 (fixed in 5.2.4)

References