CVE-2026-77635: CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver
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.
Published Sep 8, 2026
Affected packages
cakephp/cakephp
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.3.0, < 5.3.7
- Fixed in
- 5.3.7
- Check
composer show cakephp/cakephp
cakephp/cakephp
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.2.0, < 5.2.15
- Fixed in
- 5.2.15
- Check
composer show cakephp/cakephp
cakephp/cakephp
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.1.0, < 5.1.10
- Fixed in
- 5.1.10
- Check
composer show cakephp/cakephp
cakephp/database
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.3.0, < 5.3.7
- Fixed in
- 5.3.7
- Check
composer show cakephp/database
cakephp/database
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.2.0, < 5.2.15
- Fixed in
- 5.2.15
- Check
composer show cakephp/database
cakephp/database
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.1.0, < 5.1.10
- Fixed in
- 5.1.10
- Check
composer show cakephp/database
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://github.com/cakephp/cakephp/security/advisories/GHSA-fxf7-vhh8-7vpq
- https://nvd.nist.gov/vuln/detail/CVE-2026-77635
- https://github.com/cakephp/cakephp/commit/138f2f61486532c29ee4d106da2a9848c1ff1ab3
- https://github.com/cakephp/cakephp/commit/489a40fb7c6e597af33fe0f7264047afccb90d55
- https://github.com/cakephp/cakephp/commit/9f1ad970a3b72293d4a37e694276645f804e819f
- https://github.com/cakephp/cakephp/releases/tag/5.1.10
- https://github.com/cakephp/cakephp/releases/tag/5.2.15
- https://github.com/cakephp/cakephp/releases/tag/5.3.7
- https://github.com/advisories/GHSA-fxf7-vhh8-7vpq
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
