{"id":"CVE-2026-142650","aliases":["GHSA-hmj2-jgmw-v4m4"],"url":"https://o3.security/vulnerability/CVE-2026-142650","summary":"Laravel: SQL Injection in Laravel PostgreSQL Query Grammar","details":"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.","published":"2026-12-02T23:07:45.052Z","modified":"2026-12-03T21:01:08.728653573Z","cvss":{"score":5.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Packagist","name":"laravel/framework","fixedVersion":"13.24.0"},{"ecosystem":"Packagist","name":"laravel/framework","fixedVersion":"12.67.0"}],"fix":{"url":"https://github.com/laravel/framework/commit/344fcc35a76eb294aeb67ac4b1b9c5b25d2a38f6","label":"laravel/framework@344fcc3"},"references":[{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v12.67.0"},{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v13.24.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142650.json"},{"type":"ADVISORY","url":"https://github.com/laravel/framework/security/advisories/GHSA-hmj2-jgmw-v4m4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142650"},{"type":"FIX","url":"https://github.com/laravel/framework/commit/344fcc35a76eb294aeb67ac4b1b9c5b25d2a38f6"},{"type":"FIX","url":"https://github.com/laravel/framework/commit/d74baa412fc57ccbd19cfb64ecd33f38c42ee352"},{"type":"FIX","url":"https://github.com/laravel/framework/pull/60923"},{"type":"FIX","url":"https://github.com/laravel/framework/pull/61192"},{"type":"PACKAGE","url":"https://github.com/laravel/framework"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-12-03T21:01:08.728653573Z"}}