Laravel's PostgreSQL Query Grammar has a vulnerability where embedded single quotes in JSON path attributes are not properly escaped when compiling non-raw Query Builder APIs. This allows user-influenced JSON path input to break out of the single-quoted SQL string literal context, potentially leading to SQL injection and manipulation of WHERE conditions. The issue affects Laravel framework versions >=13.0.0 <13.24.0 and versions below 12.67.0. Fixes are available in versions 13.24.0 and 12.67.0.