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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.1% (43rd percentile)

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

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
4.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    Low
  • Availability (A)
    None
Expand this section

NVD

8.8 high