CVE-2020-35239 · mitre
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.
Published 2021-01-26, last changed 2026-06-17. Weakness: CWE-352.
How to fix
Upgrade to a fixed version: cakephp/cakephp 4.0.10, 4.1.4 (Packagist) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2021-01-26 | Published |
| 2022-05-24 | Package advisory GHSA-9pgx-pf36-w46r |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 0.61% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-9pgx-pf36-w46r | cakephp/cakephp (Packagist) | 4.0.10 |
| GHSA-9pgx-pf36-w46r | cakephp/cakephp (Packagist) | 4.1.4 |
Also known as: GHSA-9pgx-pf36-w46r
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-119417 | 2026-10-30 | 6.3 | CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport |
| CVE-2026-79752 | 2026-09-17 | 9.2 | CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection |
| CVE-2026-77635 | 2026-08-24 | 9.2 | CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver |
| CVE-2026-77634 | 2026-08-24 | 8.2 | CakePHP: SmtpTransport vulnerable to CRLF header injection |
| CVE-2026-48820 | 2026-06-17 | 6.3 | CakePHP: View::element() is missing a path containment check |
| CVE-2026-23643 | 2026-01-16 | 5.4 | CakePHP PaginatorHelper::limitControl() vulnerable to reflected cross-site-scripting |
| CVE-2023-22727 | 2023-01-17 | 9.8 | Database Query::offset() and limit() vulnerable to SQL injection in cakephp |
| CVE-2020-15400 | 2020-06-30 | 4.3 | same package: cakephp/cakephp (Packagist) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2020-35239, or call /api/v1/vulnerabilities/CVE-2020-35239. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.