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

Critical severity, published 2026-09-08. 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.

Canonical URL: https://buzzphp.com/security/ghsa-fxf7-vhh8-7vpq · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical |
| Published | 2026-09-08 |
| Updated | 2026-09-08 |
| CVE | [CVE-2026-77635](https://nvd.nist.gov/vuln/detail/CVE-2026-77635) |
| GHSA | [GHSA-fxf7-vhh8-7vpq](https://github.com/advisories/GHSA-fxf7-vhh8-7vpq) |
| Weakness | CWE-89 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| cakephp/cakephp | >= 5.3.0, < 5.3.7 or >= 5.2.0, < 5.2.15 or >= 5.1.0, < 5.1.10 | 5.3.7, 5.2.15, 5.1.10 |
| cakephp/database | >= 5.3.0, < 5.3.7 or >= 5.2.0, < 5.2.15 or >= 5.1.0, < 5.1.10 | 5.3.7, 5.2.15, 5.1.10 |

## What to do

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.

Check which version you run with `composer show cakephp/cakephp`, and every affected package with `composer audit`.

## About this advisory

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.

## Links

- [GHSA-fxf7-vhh8-7vpq on GitHub](https://github.com/advisories/GHSA-fxf7-vhh8-7vpq)
- [CVE-2026-77635 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-77635)
- [All Composer security advisories](https://buzzphp.com/security)
