ADVISORIES

GitHub Advisory Database

GHSA-fxf7-vhh8-7vpq

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

Critical CVE-2026-77635

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.

Affected packages

EcosystemPackageAffected versions
Packagistcakephp/cakephp
From 5.3.0 before 5.3.7 (fixed in 5.3.7)
Packagistcakephp/cakephp
From 5.2.0 before 5.2.15 (fixed in 5.2.15)
Packagistcakephp/cakephp
From 5.1.0 before 5.1.10 (fixed in 5.1.10)
Packagistcakephp/database
From 5.3.0 before 5.3.7 (fixed in 5.3.7)
Packagistcakephp/database
From 5.2.0 before 5.2.15 (fixed in 5.2.15)
Packagistcakephp/database
From 5.1.0 before 5.1.10 (fixed in 5.1.10)

References