Laravel: SQL Injection in Laravel PostgreSQL Query Grammar
- CVE-2026-142650
- GHSA-hmj2-jgmw-v4m4
- EUVD-2026-141977
Description
Laravel is a web application framework. Prior to 13.24.0 and 12.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. 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. This issue is fixed in versions 13.24.0 and 12.67.0.
Text from the CVE.org record.
Recommendation
laravel/framework
- If you run a version from 13.0.0 to before 13.24.0update to 13.24.0 or laterMinor version change: check the release noteslaravel/framework 13.24.0 on its registry (opens in a new tab)
- If you run a version before 12.67.0update to 12.67.0 or laterlaravel/framework 12.67.0 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
laravel framework
Affected versions Fixed in >= 13.0.0, < 13.24.0 none stated < 12.67.0 none stated laravel/frameworkPackagist
Affected versions Fixed in from 13.0.0 to before 13.24.0 13.24.0 before 12.67.0 12.67.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.