Skip to content
OpenAdvisories
Medium · 4.3 CVE-2026-54614 EUVD-2026-66597GHSA-p46m-g734-vpc4

DebugKit: MailPreview contains unsafe reflection

Published Aug 26, 2026 · Updated Aug 29, 2026 · Assigned by GitHub_M

Description

DebugKit provides a debugging toolbar for CakePHP applications. Prior to 4.10.3 and 5.2.4, the DebugKit MailPreview feature in src/Controller/MailPreviewController.php accepts a route-controlled previewName value in findPreview and passes the resolved class from App::className() to constructor execution without rejecting namespace separators or verifying that the class extends DebugKit\Mailer\MailPreview. An attacker able to access DebugKit while debug mode is enabled and the request hostname is local or allowlisted can select an unintended application class through the mail-preview preview route, resulting in arbitrary constructor execution and limited disclosure of application information. This issue is fixed in versions 4.10.3 and 5.2.4.

Affected products

VendorProductAffectedFixed
cakephp debug_kit < 4.10.3, >= 5.0.0, < 5.2.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist cakephp/debug_kit < 4.10.3 4.10.3 GHSA-p46m-g734-vpc4
Packagist cakephp/debug_kit >= 5.0.0, < 5.2.4 5.2.4 GHSA-p46m-g734-vpc4

References