CriticalGHSA-fxf7-vhh8-7vpqCVE-2026-77635
CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver
Published 8 Sept 2026 · Updated 8 Sept 2026
Affected packages
cakephp/cakephpComposer
- Affected
- >=5.3.0 <5.3.7
- Fixed in
- 5.3.7
Update to the fixed version for your release line, for example:
composer require cakephp/cakephp:^5.3.7cakephp/cakephpComposer
- Affected
- >=5.2.0 <5.2.15
- Fixed in
- 5.2.15
Update to the fixed version for your release line, for example:
composer require cakephp/cakephp:^5.2.15cakephp/cakephpComposer
- Affected
- >=5.1.0 <5.1.10
- Fixed in
- 5.1.10
Update to the fixed version for your release line, for example:
composer require cakephp/cakephp:^5.1.10cakephp/databaseComposer
- Affected
- >=5.3.0 <5.3.7
- Fixed in
- 5.3.7
Update to the fixed version for your release line, for example:
composer require cakephp/database:^5.3.7cakephp/databaseComposer
- Affected
- >=5.2.0 <5.2.15
- Fixed in
- 5.2.15
Update to the fixed version for your release line, for example:
composer require cakephp/database:^5.2.15cakephp/databaseComposer
- Affected
- >=5.1.0 <5.1.10
- Fixed in
- 5.1.10
Update to the fixed version for your release line, for example:
composer require cakephp/database:^5.1.10Details
Impact
The FunctionsBuilder::jsonValue($field, $jsonPath) methods with the Postgres driver is vulnerable to SQL injection if user controlled data is supplied to the $jsonPath parameter.
Patches
5.1.10, 5.2.15, 5.3.7
Workarounds
Don't provide user controlled data to these functions/parameters.
Is GHSA-fxf7-vhh8-7vpq in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected cakephp/cakephp, and gives you the command that fixes it.
References
- Linkgithub.com/cakephp/cakephp/security/advisories/GHSA-fxf7-vhh8-7vpq
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-77635
- Linkgithub.com/cakephp/cakephp/commit/138f2f61486532c29ee4d106da2a9848c1ff1ab3
- Linkgithub.com/cakephp/cakephp/commit/489a40fb7c6e597af33fe0f7264047afccb90d55
- Linkgithub.com/cakephp/cakephp/commit/9f1ad970a3b72293d4a37e694276645f804e819f
- Packagegithub.com/cakephp/cakephp
- Linkgithub.com/cakephp/cakephp/releases/tag/5.1.10
- Linkgithub.com/cakephp/cakephp/releases/tag/5.2.15
- Linkgithub.com/cakephp/cakephp/releases/tag/5.3.7
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.