cakephp/debug_kit: MailPreview contains unsafe reflection
Moderate severity
GitHub Reviewed
Published
Jun 16, 2026
in
cakephp/debug_kit
•
Updated Aug 26, 2026
Package
Affected versions
< 4.10.3
>= 5.0.0, < 5.2.4
Patched versions
4.10.3
5.2.4
Description
Published to the GitHub Advisory Database
Aug 26, 2026
Reviewed
Aug 26, 2026
Last updated
Aug 26, 2026
Impact
The
MailPreviewfeature of debugkit is vulnerable to arbitrary constructor execution. For an application to be vulnerable the following conditions must be true:debugmode must be enabled.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.
References