cakephp/database vulnerabilities

Flexible and powerful Database abstraction library with a familiar PDO-like API

Registry
Composer
Latest
5.4.3
License
MIT

3 known advisories

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

Update to the latest version:composer require cakephp/database:^5.4.3

Security advisories for cakephp/database

  • CriticalGHSA-vjqc-q4mp-2rvf17 Sept 2026

    CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection

    Affected
    >=3.0.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
  • CriticalGHSA-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
  • CriticalGHSA-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

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

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.