Cross-site Request Forgery (CSRF) Affecting cakephp/cakephp package, versions >=4.0.0, <4.0.10 >=4.1.0, <4.1.4


0.0
medium

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    EPSS 0.1% (41st percentile)
Expand this section
NVD
8.8 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PHP-CAKEPHPCAKEPHP-3252484
  • published 29 Jan 2023
  • disclosed 24 May 2022
  • credit Xhelal Likaj

How to fix?

Upgrade cakephp/cakephp to version 4.0.10, 4.1.4 or higher.

Overview

cakephp/cakephp is a rapid development framework for PHP which uses commonly known design patterns like Associative Data Mapping, Front Controller, and MVC.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the CsrfProtectionMiddleware component by changing without verification the HTTP request method to an arbitrary string that is not in the list of request methods that CakePHP checks.

References