{"affected":[{"product":"framework","source":"CNA: GitHub_M","vendor":"laravel","versions":[{"status":"affected","version":">= 13.0.0, < 13.24.0"},{"status":"affected","version":"< 12.67.0"}]}],"cveId":"CVE-2026-142650","cwes":["CWE-89"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":5.9,"severity":"medium","source":"CNA: GitHub_M","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}],"modifiedAt":1796252865052,"publishedAt":1796252865052,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/laravel/framework/security/advisories/GHSA-hmj2-jgmw-v4m4"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/framework/pull/60923"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/framework/pull/61192"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/framework/commit/344fcc35a76eb294aeb67ac4b1b9c5b25d2a38f6"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/framework/commit/d74baa412fc57ccbd19cfb64ecd33f38c42ee352"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/framework/releases/tag/v12.67.0"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/framework/releases/tag/v13.24.0"}],"remediation":[],"revision":"4e91b64dedb78c85b745e40cde2e2fa08beca8c7af54ade9de8f120be7b23a92","sources":[{"modifiedAt":1796252865052,"name":"CNA: GitHub_M","retrievedAt":1796256517569,"url":"https://www.cve.org/CVERecord?id=CVE-2026-142650"}],"ssvc":null,"status":"published","title":"Laravel: SQL Injection in Laravel PostgreSQL Query Grammar","updatedAt":1796256517569}