HIGH8.8
GHSA-9pgx-pf36-w46r
CakePHP allows method override parameters to bypass CSRF checks
Quick fix
GHSA-9pgx-pf36-w46r — cakephp/cakephp: upgrade to the fixed version with the command below.
composer require cakephp/cakephp:^4.0.10Details
A vulnerability exists in CakePHP versions 4.0.x through 4.1.3. The CsrfProtectionMiddleware component allows method override parameters to bypass CSRF checks by changing the HTTP request method to an arbitrary string that is not in the list of request methods that CakePHP checks. Additionally, the route middleware does not verify that this overriden method (which can be an arbitrary string) is actually an HTTP method.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/cakephp/cakephp
Introduced in:
4.0.0Fixed in: 4.0.10Fix
composer require cakephp/cakephp:^4.0.10Packagist/cakephp/cakephp
Introduced in:
4.1.0Fixed in: 4.1.4Fix
composer require cakephp/cakephp:^4.1.4