Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-35239

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-35239
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 05:32 UTC · Revision 1

Source evidence

CVE-2020-35239

core-osv · Original source

Published 26 Jan 2021, 18:15 UTC

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.

osv:CVE-2020-35239
Complete source record
{
  "id": "f304d10092e8a1a896413a4c718c794455c7839c8ae4e63d92b0717341c509ca",
  "url": "https://osv.dev/vulnerability/CVE-2020-35239",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-35239",
    "summary": "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.",
    "evidence": "osv:CVE-2020-35239",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2020-35239",
      "aliases": [
        "CVE-2020-35239",
        "GHSA-9pgx-pf36-w46r"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cakephp/cakephp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "767b164747df789db8c0fbcf3bcf9eaf3be55b38"
                },
                {
                  "last_affected": "2c0273a37023044b96a4d6471092f48f51225f8d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:cakephp:cakephp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "last_affected": "4.1.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.0",
            "4.0.9",
            "4.1.3",
            "4.1.2",
            "4.1.1",
            "4.1.0",
            "4.0.8",
            "4.0.7",
            "4.0.6",
            "4.0.5",
            "4.0.4",
            "4.0.3",
            "4.0.2",
            "4.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-35239.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:30.181111540Z",
      "provider": "osv",
      "references": [
        "https://bakery.cakephp.org/2020/12/07/cakephp_4010_released.html"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-35239",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 432516,
  "published_at": "2021-01-26T18:15:53.583+00:00"
}