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?
| Package | Affected versions | Fixed 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.10 | 5.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.10 | 5.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 auditAdvisory details
| Severity | Critical |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-77635 (opens in a new tab) |
| GHSA | GHSA-fxf7-vhh8-7vpq (opens in a new tab) |
| Weakness | CWE-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
- CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection (critical, 17 September 2026)
- CakePHP: SmtpTransport vulnerable to CRLF header injection (high, 8 September 2026)