GHSA-hmj2-jgmw-v4m4MediumCVSS 5.9
Laravel: SQL Injection in Laravel PostgreSQL Query Grammar
🔗 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
🎯 Affected products2
- composer/laravel/framework:>= 13.0.0, < 13.24.0
- composer/laravel/framework:< 12.67.0
🔗 References (9)
- https://github.com/laravel/framework/security/advisories/GHSA-hmj2-jgmw-v4m4
- https://nvd.nist.gov/vuln/detail/CVE-2026-142650
- https://github.com/laravel/framework/pull/60923
- https://github.com/laravel/framework/pull/61192
- https://github.com/laravel/framework/commit/344fcc35a76eb294aeb67ac4b1b9c5b25d2a38f6
- https://github.com/laravel/framework/commit/d74baa412fc57ccbd19cfb64ecd33f38c42ee352
- https://github.com/laravel/framework/releases/tag/v12.67.0
- https://github.com/laravel/framework/releases/tag/v13.24.0
- https://github.com/advisories/GHSA-hmj2-jgmw-v4m4