CVE Tools
Laravel CVE-2026-114508: a GET request can empty a database table

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-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
Affectedlaravel/framework >= 12.45.0 and < 12.68.0, and >= 13.0.0 and < 13.27.0
Fixed in12.68.0 and 13.27.0
Exposed code pathJsonApiResource (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
SeverityCVSS 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
ExploitationNo 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

  1. Update laravel/framework to 12.68.0 or 13.27.0. The fix checks every level of an include against the resource's own declared relationships and ignores unknown names.
  2. Prefer 13.29.0 or later on the 13.x line. A second advisory, CVE-2026-114509 (a TokenGuard authentication bypass, CVSS v4 9.2), is fixed in 12.68.0 and 13.29.0, so one update covers both.
  3. Until you can update (our suggestion, not from the advisory): reject any include value with more than one segment in a middleware, and make sure the application's database user does not need TRUNCATE at run time.
  4. 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.log

The 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.

Frequently asked questions

Which Laravel versions fix CVE-2026-114508?
12.68.0 and 13.27.0. Version 13.29.0 also fixes the related CVE-2026-114509, so it is the better target on the 13.x line.
Does CVE-2026-114508 need authentication or a write permission?
The advisory describes it as a request to a read-only endpoint by a user with only read access. The CVSS vector lists no privileges required.
Is CVE-2026-114508 exploited in the wild?
No exploitation has been reported and it is not in CISA KEV. Its EPSS score is about 0.5%.