
Laravel CVE-2026-114508: a GET request can empty a database table
A nested `include` in JSON:API resources reached Eloquent's truncate(). Affected versions, the fix, and how to check your logs.
CVE Tools3 min read
CVE-2026-114508 is a flaw in the JSON:API resources of laravel/framework. The include query parameter lets a client ask for related records. Laravel checked the first name against the resource's declared relationships, but passed the nested names (comments.truncate) on without checking them. Eloquent then treated truncate as a relation and ran it as a query-builder method, which empties the table. A read-only GET endpoint can therefore destroy data. See the Laravel advisory for the primary description; our page for the record is CVE-2026-114508.
This is not a fresh disclosure: the advisory is dated October 19, 2026, NVD published it on October 21. It is back in the news now, so it is worth a check if you have not looked yet.
Who is affected
| Details | |
|---|---|
| Affected | laravel/framework >= 12.45.0 and < 12.68.0, and >= 13.0.0 and < 13.27.0 |
| Fixed in | 12.68.0 and 13.27.0 |
| Exposed code path | JsonApiResource (JSON:API resources). The advisory does not name the feature; the version range and the fix, which touches only that code, point to it. Apps that do not use JSON:API resources are probably not exposed |
| Severity | CVSS 3.1 6.5 Medium, AV:N/AC:L/PR:N/UI:N/C:N/I:L/A:L, CWE-470. EPSS about 0.5%. Not in KEV |
| Exploitation | No in-the-wild exploitation reported; the fix's regression tests double as a proof of concept |
What exactly happens
The fix test requests include=comments.truncate and include=posts.comments.truncate, so deeper paths were affected too. We could not find a statement of the HTTP status code the vulnerable version returns, or whether the table is already empty when it does. Treat both as unknown, and assume the data is gone if the query ran. The advisory says a user with only read access can trigger it; the database account of the application must be allowed to run TRUNCATE, which the application's own connection normally is.
Check your project
composer show laravel/framework | grep versions
grep -rn "JsonApiResource\|toRelationships(" app/If the version is in the affected range and the second command finds JSON:API resources, you are exposed. If grep finds nothing, the vulnerable path is probably not in use, but update anyway.
Fix it
- Update
laravel/frameworkto 12.68.0 or 13.27.0. The fix checks every level of anincludeagainst the resource's own declared relationships and ignores unknown names. - Prefer 13.29.0 or later on the 13.x line. A second advisory, CVE-2026-114509 (a
TokenGuardauthentication bypass, CVSS v4 9.2), is fixed in 12.68.0 and 13.29.0, so one update covers both. - Until you can update (our suggestion, not from the advisory): reject any
includevalue with more than one segment in a middleware, and make sure the application's database user does not needTRUNCATEat run time. - Check backups for tables that JSON:API endpoints expose.
Look for traces
Look in web server and application logs for GET requests whose include has a dotted name that is not a relationship of yours.
grep -E 'include=[^ &]*\.(truncate|delete|update|insert|forceDelete)' access.logThe list of method names is our guess at the obvious ones; the flaw was not limited to them, so also review dotted include values you do not recognise. Empty tables with no matching write in your own audit trail are a second sign.