CVE-2026-54614
CVE-2026-54614 · DebugKit: MailPreview contains unsafe reflection
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 4.3 · Medium · EPSS 0.5% · Fix available
- Published
- Updated
Stack: php
Affected products and versions
debug_kit
- Versions
- < 4.10.3: Affected
- >= 5.0.0, < 5.2.4: Affected
No fix published
cakephp/debug_kit Packagist
- Versions
- 2.2.1
- 2.2.2
- 2.2.3
- 2.2.4
- 2.2.5
- 2.2.6
- 2.2.7
- 2.2.8
- 2.2.9
- 3.0.0
- 3.0.0-beta
- 3.0.0-beta2
- 3.0.1
- 3.0.2
- 3.1.0
- 3.1.1
- 3.1.10
- 3.1.2
- 3.1.3
- 3.1.4
- 3.1.5
- 3.1.6
- 3.1.7
- 3.1.8
- 3.1.9
- 3.10.0
- 3.10.1
- 3.10.2
- 3.10.3
- 3.10.4
- 3.11.0
- 3.11.1
- 3.11.2
- 3.11.3
- 3.11.4
- 3.11.5
- 3.11.6
- 3.12.0
- 3.13.0
- 3.14.0
- 3.14.1
- 3.14.2
- 3.15.0
- 3.15.1
- 3.15.2
- 3.15.3
- 3.16.0
- 3.16.1
- 3.16.2
- 3.16.3
- 3.16.4
- 3.16.5
- 3.16.6
- 3.16.7
- 3.17.0
- 3.17.1
- 3.18.0
- 3.19.0
- 3.2.0
- 3.2.1
- 3.2.2
- 3.2.3
- 3.2.4
- 3.2.5
- 3.2.6
- 3.2.7
- 3.2.8
- 3.2.9
- 3.20.0
- 3.20.1
- 3.20.2
- 3.20.3
- 3.20.4
- 3.20.5
- 3.21.0
- 3.21.1
- 3.22.1
- 3.22.2
- 3.22.3
- 3.22.4
- 3.23.0
- 3.3.0
- 3.3.1
- 3.3.2
- 3.3.3
- 3.3.4
- 3.3.5
- 3.3.6
- 3.3.7
- 3.4.0
- 3.4.1
- 3.4.2
- 3.4.3
- 3.5.0
- 3.5.1
- 3.6.0
- 3.7.0
- 3.8.0
- 3.9.0
- 3.9.1
- 3.9.2
- 3.9.3
- 3.9.4
- 3.9.5
- 4.0.0
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.0.5
- 4.0.6
- 4.1.0
- 4.1.1
- 4.1.2
- 4.1.3
- 4.10.0
- 4.10.1
- 4.10.2
- 4.2.0
- 4.3.0
- 4.3.1
- 4.3.2
- 4.3.3
- 4.3.4
- 4.3.5
- 4.3.6
- 4.3.7
- 4.3.8
- 4.3.9
- 4.4.0
- 4.4.1
- 4.4.2
- 4.4.3
- 4.4.4
- 4.5.0
- 4.6.0
- 4.7.0
- 4.7.1
- 4.8.0
- 4.8.1
- 4.9.0
- 4.9.1
- 4.9.2
- 4.9.3
- 4.9.4
- 4.9.5
- 4.9.6
- Affected ranges
- ECOSYSTEM: < 4.10.3
Update to 4.10.3
cakephp/debug_kit Packagist
- Versions
- 5.0.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.0.4
- 5.0.5
- 5.0.6
- 5.1.0
- 5.1.1
- 5.1.2
- 5.1.3
- 5.1.4
- 5.1.5
- 5.2.0
- 5.2.1
- 5.2.2
- 5.2.3
- Affected ranges
- ECOSYSTEM: ≥ 5.0.0, < 5.2.4
Update to 5.2.4
Original sources
- https://github.com/cakephp/debug_kit/security/advisories/GHSA-p46m-g734-vpc4
- https://github.com/cakephp/debug_kit/pull/1078
- https://github.com/cakephp/debug_kit/commit/7c4d85e984c2334b0f50cd02578a927ff9649e13
- https://github.com/cakephp/debug_kit/commit/c8a2a9e07d56a5e212d95f6947f370f3b5e6eed6
- https://github.com/cakephp/debug_kit/releases/tag/4.10.3
- https://github.com/cakephp/debug_kit/releases/tag/5.2.4
- https://nvd.nist.gov/vuln/detail/CVE-2026-54614