Advisory

GHSA-fxf7-vhh8-7vpq

Also known as: CVE-2026-77635

Summary

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

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-09-08 20:56 UTC
Modified
2026-09-08 21:15 UTC

Affected packages and fixes

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 5.3.0, fixed 5.3.7 (ecosystem)

Fixed versions

5.3.7

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 5.2.0, fixed 5.2.15 (ecosystem)

Fixed versions

5.2.15

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 5.1.0, fixed 5.1.10 (ecosystem)

Fixed versions

5.1.10

Fix

The export has no generic command for this ecosystem.

cakephp/database

Packagist · All systems

Affected

  • introduced 5.3.0, fixed 5.3.7 (ecosystem)

Fixed versions

5.3.7

Fix

The export has no generic command for this ecosystem.

cakephp/database

Packagist · All systems

Affected

  • introduced 5.2.0, fixed 5.2.15 (ecosystem)

Fixed versions

5.2.15

Fix

The export has no generic command for this ecosystem.

cakephp/database

Packagist · All systems

Affected

  • introduced 5.1.0, fixed 5.1.10 (ecosystem)

Fixed versions

5.1.10

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences