← Vulnerabilities

MediumAdvisoryPHPLaravelPostgreSQLGitHub

Laravel: SQL Injection in Laravel PostgreSQL Query Grammar

Affected

PackageAffected versionsFixed in
composer:laravel/framework>= 13.0.0, < 13.24.013.24.0
composer:laravel/framework< 12.67.012.67.0

Laravel's PostgreSQL Query Grammar does not escape embedded single quotes in JSON path attributes when compiling non-raw Query Builder APIs. A user-influenced JSON path / identifier segment can break out of the single-quoted SQL string literal context used by PostgreSQL JSON operators. Impact This can lead to SQL structure injection and WHERE-condition manipulation when an application passes user-influenced JSON path input into affected Query Builder APIs. Patches [#60923](https://github.com/la…

Read on GitHub Advisory Database

On 12/04/2026, 03:19 AM, GitHub Advisory Database published "Laravel: SQL Injection in Laravel PostgreSQL Query Grammar" (type: Advisory). Severity is "Medium" (medium). Related technologies: PHP, Laravel, PostgreSQL, GitHub. CVE: CVE-2026-142650.