{"answers":{"affected":"4 open source packages ship an affected version, including cakephp/cakephp. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-35239 in the wild and no public exploit code.","fix":"Upgrade cakephp/cakephp to a fixed version for your release line: 4.0.10 or 4.1.4.","what":"CVE-2020-35239 is a high-severity vulnerability in n/a, published on 20 Jan 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-35239 and fix it if it is affected.\n\nWhat it is: CVE-2020-35239 is a high-severity vulnerability in n/a, published on 20 Jan 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-35239 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cakephp/cakephp (Packagist): affected from 4.0.0; fixed in 4.0.10\n- cakephp/cakephp (Packagist): affected from 4.0.0; fixed in 4.0.10\n- cakephp/cakephp (Packagist): affected from 4.1.0; fixed in 4.1.4\n- cakephp/cakephp (Packagist): affected from 4.1.0; fixed in 4.1.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-35239/ (Markdown: https://insights.sbomify.com/CVE-2020-35239/index.md)","id":"CVE-2020-35239","markdown":"https://insights.sbomify.com/CVE-2020-35239/index.md","name":"CVE-2020-35239","record":{"aliases":["GHSA-9pgx-pf36-w46r","UBUNTU-CVE-2020-35239"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"CakePHP framework","requires_auth":"none","summary":"Attackers can bypass CSRF protection in CakePHP by using arbitrary method override parameters, allowing unauthorized state-changing requests.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"cakephp","vendor":"cakephp"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"CakePHP allows method override parameters to bypass CSRF checks","id":"CVE-2020-35239","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"csrf","year":"2020"},"n_packages":4,"n_references":1,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2020-35240"},"packages":[{"ecosystem":"Packagist","fixed":["4.0.10"],"introduced":["4.0.0"],"last_affected":[],"package":"cakephp/cakephp","purl":null,"source":"GHSA-9pgx-pf36-w46r"},{"ecosystem":"Packagist","fixed":["4.0.10"],"introduced":["4.0.0"],"last_affected":[],"package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"GHSA-9pgx-pf36-w46r"},{"ecosystem":"Packagist","fixed":["4.1.4"],"introduced":["4.1.0"],"last_affected":[],"package":"cakephp/cakephp","purl":null,"source":"GHSA-9pgx-pf36-w46r"},{"ecosystem":"Packagist","fixed":["4.1.4"],"introduced":["4.1.0"],"last_affected":[],"package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"GHSA-9pgx-pf36-w46r"}],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2020-35236"},"products":["n/a"],"published":"2021-01-20","related":[{"cvss_score":9.8,"headline":"Database Query::offset() and limit() vulnerable to SQL injection in cakephp","id":"CVE-2023-22727","kev_date_added":null,"published":"2023-01-17"},{"cvss_score":8.8,"headline":"CakePHP might allow remote attackers to bypass CSRF protection mechanism via the _method parameter","id":"CVE-2015-8379","kev_date_added":null,"published":"2016-01-26"},{"cvss_score":7.5,"headline":"Unsafe deserialization in SmtpTransport in CakePHP","id":"CVE-2019-11458","kev_date_added":null,"published":"2019-05-08"},{"cvss_score":7.5,"headline":"CakePHP allows remote attackers to spoof their IP","id":"CVE-2016-4793","kev_date_added":null,"published":"2017-01-23"},{"cvss_score":5.4,"headline":"CakePHP PaginatorHelper::limitControl() vulnerable to reflected cross-site-scripting","id":"CVE-2026-23643","kev_date_added":null,"published":"2026-01-16"},{"cvss_score":5.1,"headline":"CakePHP: Open redirect weakness via backslash bypass","id":"CVE-2026-55590","kev_date_added":null,"published":"2026-07-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Attackers can bypass CSRF protection in CakePHP by using arbitrary method override parameters, allowing unauthorized state-changing requests.","url":"https://insights.sbomify.com/CVE-2020-35239/"}