BuzzPHP
LightDarkSystem

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

Critical severity. Published 8 September 2026. Update cakephp/cakephp to the fixed version of your branch (5.3.7, 5.2.15, 5.1.10) and cakephp/database to the fixed version of your branch (5.3.7, 5.2.15, 5.1.10): composer update cakephp/cakephp cakephp/database.

Which versions are affected?

PackageAffected versionsFixed in
cakephp/cakephp (opens in a new tab)>= 5.3.0, < 5.3.7 | >= 5.2.0, < 5.2.15 | >= 5.1.0, < 5.1.105.3.7, 5.2.15, 5.1.10
cakephp/database (opens in a new tab)>= 5.3.0, < 5.3.7 | >= 5.2.0, < 5.2.15 | >= 5.1.0, < 5.1.105.3.7, 5.2.15, 5.1.10

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show cakephp/cakephp
composer audit

Advisory details

SeverityCritical
Published
Updated
CVECVE-2026-77635 (opens in a new tab)
GHSAGHSA-fxf7-vhh8-7vpq (opens in a new tab)
WeaknessCWE-89

What the advisory says

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.

Source: GHSA-fxf7-vhh8-7vpq (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories