VDB
KO
MEDIUM 4.3

GHSA-p46m-g734-vpc4

cakephp/debug_kit: MailPreview contains unsafe reflection

Quick fix

GHSA-p46m-g734-vpc4 — cakephp/debug_kit: upgrade to the fixed version with the command below.

composer require cakephp/debug_kit:^4.10.3

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:

1. `debug` mode must be enabled. 2. 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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist / cakephp/debug_kit
Introduced in: 0 Fixed in: 4.10.3
Fix composer require cakephp/debug_kit:^4.10.3
Packagist / cakephp/debug_kit
Introduced in: 5.0.0 Fixed in: 5.2.4
Fix composer require cakephp/debug_kit:^5.2.4

References