GHSA-hmj2-jgmw-v4m4MediumCVSS 5.9

Laravel: SQL Injection in Laravel PostgreSQL Query Grammar

Published
December 3, 2026
Last Modified
December 3, 2026

🔗 CVE IDs covered (1)

📋 Description

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 #61192

🎯 Affected products2

  • composer/laravel/framework:>= 13.0.0, < 13.24.0
  • composer/laravel/framework:< 12.67.0

🔗 References (9)