cakephp/cakephp vulnerabilities

The CakePHP framework

Registry
Composer
Latest
5.4.4
License
MIT

22 known advisories

The latest version, 5.4.4, is not affected by any of them. Projects on older versions may be.

Update to the latest version:composer require cakephp/cakephp:^5.4.4

Is your project on an affected cakephp/cakephp?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for cakephp/cakephp

  • CriticalCVE-2026-79752GHSA-vjqc-q4mp-2rvf17 Sept 2026

    CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection

    Affected
    <4.5.12 · >=4.6.0 <4.6.5 · >=5.0.0 <5.1.9 · >=5.2.0 <5.2.14 · >=5.3.0 <5.3.7
    Fixed in
    4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7
  • CriticalCVE-2026-77635GHSA-fxf7-vhh8-7vpq8 Sept 2026

    CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver

    Affected
    >=5.3.0 <5.3.7 · >=5.2.0 <5.2.15 · >=5.1.0 <5.1.10
    Fixed in
    5.1.10, 5.2.15, 5.3.7
  • HighCVE-2026-119417GHSA-2qh5-382h-3jpc8 Sept 2026

    CakePHP: SmtpTransport vulnerable to CRLF header injection

    Affected
    >=4.5.0 <4.5.12 · >=4.6.0 <4.6.5 · >=5.0.0 <5.1.9 · >=5.2.0 <5.2.14 · >=5.3.0 <5.3.7
    Fixed in
    4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7
  • MediumCVE-2026-48820GHSA-wpvj-hjcr-h3p226 Jun 2026

    CakePHP: View::element() is missing a path containment check

    Affected
    >=5.3.0 <5.3.6 · >=5.2.0 <5.2.13 · >=5.0.0 <5.1.7 · >=4.6.0 <4.6.4 · <4.5.11
    Fixed in
    4.5.11, 4.6.4, 5.1.7, 5.2.13, 5.3.6
  • MediumCVE-2026-23643GHSA-qh8m-9qxx-53m516 Jan 2026

    CakePHP PaginatorHelper::limitControl() vulnerable to reflected cross-site-scripting

    Affected
    >=5.2.10 <5.2.12 · >=5.3.0 <5.3.1
    Fixed in
    5.2.12, 5.3.1
  • MediumGHSA-xwhj-pqcg-8rcr20 Jan 2023

    CakePHP vulnerable to Cross-site Scripting in some development error pages

    Affected
    >=3.4.0 <3.4.14 · >=3.5.0 <3.5.17 · >=3.6.0 <3.6.4
    Fixed in
    3.4.14, 3.5.17, 3.6.4
  • MediumGHSA-p76f-wr22-4rv620 Jan 2023

    CakePHP vulnerable to Remote File Inclusion through View template name manipulation

    Affected
    >=2.0.0 <2.0.99 · >=2.1.0 <2.1.99 · >=2.2.0 <2.2.99 · >=2.3.0 <2.3.99 · >=2.4.0 <2.4.99 · >=2.5.0 <2.5.99 · >=2.6.0 <2.6.12 · >=2.7.0 <2.7.6 · >=3.0.0 <3.0.15 · >=3.1.0 <3.1.4
    Fixed in
    2.0.99, 2.1.99, 2.2.99, 2.3.99, 2.4.99, 2.5.99, 2.6.12, 2.7.6, 3.0.15, 3.1.4
  • MediumGHSA-6hg4-vp5q-47mw20 Jan 2023

    CakePHP allows direct access of prefixed controller actions

    Affected
    >=2.0.0 <2.0.99 · >=2.1.0 <2.1.99 · >=2.2.0 <2.2.99 · >=2.3.0 <2.3.99 · >=2.4.0 <2.4.99 · >=2.5.0 <2.5.9 · >=2.6.0 <2.6.11 · >=2.7.0 <2.7.2
    Fixed in
    2.0.99, 2.1.99, 2.2.99, 2.3.99, 2.4.99, 2.5.9, 2.6.11, 2.7.2
  • HighGHSA-q79m-c546-2g6320 Jan 2023

    CakePHP vulnerable to Denial of Service attack through XML payloads

    Affected
    >=3.0.0 <3.0.6 · >=2.0.0 <2.0.99 · >=2.1.0 <2.1.99 · >=2.2.0 <2.2.99 · >=2.3.0 <2.3.99 · >=2.4.0 <2.4.99 · >=2.5.0 <2.5.90 · >=2.6.0 <2.6.6
    Fixed in
    2.0.99, 2.1.99, 2.2.99, 2.3.99, 2.4.99, 2.5.90, 2.6.6, 3.0.6
  • MediumGHSA-j9q2-f9q7-jhgq20 Jan 2023

    CakePHP SecurityComponent cross form submission issue

    Affected
    >=2.0.0 <2.4.8 · >=1.3.0 <1.3.18
    Fixed in
    1.3.18, 2.4.8
  • MediumGHSA-829q-v5g8-hhxc20 Jan 2023

    CakePHP has incorrect Cross-Site Request Forgery validation

    Affected
    >=3.0.0 <3.0.4
    Fixed in
    3.0.4
  • CriticalCVE-2023-22727GHSA-6g8q-qfpv-57wp20 Jan 2023

    CakePHP Database\\Query::offset() and limit() methods are vulnerable to SQL injection

    Affected
    >=4.2.0 <4.2.12 · >=4.3.0 <4.3.11 · >=4.4.0 <4.4.10
    Fixed in
    4.2.12, 4.3.11, 4.4.10
  • HighCVE-2020-35239GHSA-9pgx-pf36-w46r24 May 2022

    CakePHP allows method override parameters to bypass CSRF checks

    Affected
    >=4.0.0 <4.0.10 · >=4.1.0 <4.1.4
    Fixed in
    4.0.10, 4.1.4
  • HighCVE-2010-4335GHSA-g2vx-8v47-4vhh17 May 2022

    CakePHP allows remote attackers to modify internal Cake cache and execute arbitrary code

    Affected
    >=1.2.8 <1.3.6
    Fixed in
    1.3.6
  • MediumCVE-2011-3712GHSA-r7p6-fr3x-r87717 May 2022

    CakePHP 1.3.7 allows remote attackers to obtain sensitive information via a direct request to a .php file

    Affected
    >=1.3.7 <1.3.8
    Fixed in
    1.3.8
  • HighCVE-2012-4399GHSA-5964-pq8r-4q6217 May 2022

    CakePHPallows remote attackers to read arbitrary files via XML data containing external entity references

    Affected
    >=2.1.0-alpha <2.1.5 · >=2.2.0-beta <2.2.1
    Fixed in
    2.1.5, 2.2.1
  • HighCVE-2015-8379GHSA-556q-h4vr-pgh214 May 2022

    CakePHP might allow remote attackers to bypass CSRF protection mechanism via the _method parameter

    Affected
    >=2.0.0-alpha <3.1.5
    Fixed in
    3.1.5
  • HighCVE-2016-4793GHSA-j8p3-8m69-2hqq14 May 2022

    CakePHP allows remote attackers to spoof their IP

    Affected
    >=1.2.0 <2.6.13 · >=2.7.0-rc1 <2.7.11 · >=2.8.0-rc1 <2.8.2 · >=3.0.0-rc1 <3.0.17 · >=3.1.0-beta1 <3.1.12 · >=3.2.0-rc1 <3.2.5
    Fixed in
    2.6.13, 2.7.11, 2.8.2, 3.0.17, 3.1.12, 3.2.5
  • MediumCVE-2006-5031GHSA-rw73-xmpv-j5x21 May 2022

    CakePHP directory traversal vulnerability allows remote attackers to read arbitrary files

    Affected
    >=1.0.1.2708 <1.1.8.3544
    Fixed in
    1.1.8.3544
  • MediumCVE-2006-4067GHSA-vc29-mvwv-wpcq1 May 2022

    Cross-site scripting (XSS) vulnerability in CakePHP

    Affected
    >=1.0.1.2708 <1.1.7.3363
    Fixed in
    1.1.7.3363
  • MediumCVE-2020-15400GHSA-j33j-fg2g-mcv210 Feb 2022

    Cross-Site Request Forgery in CakePHP

    Affected
    >=4.0.0 <4.0.6 · <3.10.3
    Fixed in
    3.10.3, 4.0.6
  • HighCVE-2019-11458GHSA-qhrx-hcm6-pmrw2 Dec 2019

    Unsafe deserialization in SmtpTransport in CakePHP

    Affected
    >=3.0.0 <3.5.18 · >=3.6.0 <3.6.15 · >=3.7.0 <3.7.7
    Fixed in
    3.5.18, 3.6.15, 3.7.7

Is your cakephp/cakephp version vulnerable?

Which of your client projects still run an old cakephp/cakephp?

NPMscan reads the composer.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other Composer packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the Composer registry.