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

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.7
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.15
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.10
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.7
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.15
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.10

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.