Key details

  1. Critical TokenGuard advisory GHSA-f9x3-7vq9-cph6 published October 19, CVSS 4.0 9.2.
  2. Affected built-in token guard on specified MySQL/MariaDB configurations; no API token required for impersonation.
  3. Patched Laravel 12.68.0 and 13.29.0, released August 25, 2026.
  4. Moderate GHSA-5wcm-3v2w-8362 describes destructive relationship-inclusion behaviour on read endpoints; fixed by 12.68.0 and 13.27.0.
  5. Sanctum and Passport use different guard drivers and are not listed as affected by this TokenGuard advisory.
  6. No reliable evidence in the reviewed sources establishes active exploitation.

What builders should take away

  1. Inspect config/auth.php for any token driver and identify API routes using it, particularly with MySQL or MariaDB.
  2. Check deployed composer.lock and upgrade to supported patched Laravel versions; test before deployment.
  3. Run composer audit but do not treat a clean audit alone as proof every route and guard is safe.
  4. Regression-test read-only JSON:API relationship inclusion against a disposable database and verify no writes occur.
  5. Review access logs for anomalous authentication activity if the vulnerable guard was exposed, without assuming compromise.

What changed

Laravel published GHSA-f9x3-7vq9-cph6 on 19 October 2026 with a 9.2 critical rating for an authentication bypass in Illuminate\Auth\TokenGuard. With a token-based API guard and certain MySQL/MariaDB configurations, a specially crafted non-string credential can cause a database lookup to match an unintended user. An unauthenticated attacker can thereby impersonate another user on protected routes. A second advisory, GHSA-5wcm-3v2w-8362, rates 6.5 and describes a JSON:API relationship-inclusion path that can turn a read request into a destructive operation on related data. Laravel 12.68.0 and 13.29.0 already contain both fixes, released 25 August 2026; the public advisories arrived later.

Why it matters

This is an operationally urgent distinction between application framework version and actual authentication configuration. Teams with older Laravel installations using the built-in token driver on MySQL/MariaDB may have an account-takeover exposure even without leaked tokens. The second issue illustrates how a read-only API permission does not guarantee no database writes when relationship-loading code has a defect. Updating and verifying route guards is more useful than assuming every Laravel authentication package shares the same vulnerability.

The vulnerable configuration is specific

The primary advisory concerns the built-in token guard (a guard with driver 'token' in config/auth.php) and certain MySQL/MariaDB configurations. A non-string credential reaches a lookup that may resolve an unintended user. The advisory does not list Sanctum or Passport as affected by this TokenGuard issue; applications must inspect their actual guards rather than infer exposure from the Laravel brand alone.

The patch validates credential types before lookup

Laravel News traces the TokenGuard fix to an is_string() condition in both user() and validate(). Rejecting arrays and other non-text inputs prevents the dangerous database comparison. Operators should upgrade laravel/framework to at least 12.68.0 on the 12.x line or 13.29.0 on 13.x, then confirm the deployed lockfile and runtime.

A separate JSON:API read-path bug can delete related records

GHSA-5wcm-3v2w-8362 concerns relationship inclusion on certain read endpoints introduced in the 12.45.0 era. Under specified conditions a read request can trigger a destructive operation against a related table. The advisory identifies fixed versions 12.68.0 and 13.27.0; using 13.29.0 or newer covers both advisories. The public description does not establish that every read endpoint is affected.

Disclosure date is not patch date

Both fixes were shipped on 25 August but advisories were published on 19 October. Teams with current patch versions may already be protected. For older or pinned applications, check config/auth.php and composer.lock, update the package, and exercise authentication and JSON:API regression tests on staging before production rollout.

What to watch next

  • Follow-up advisories or CVE assignments and reports of exploitation.
  • Patch uptake in older applications and any compatibility fixes.
  • Clarifications about JSON:API relationship patterns that expose the second issue.

Still unclear

  • No independently established exploitation rate or number of exposed installations.
  • Advisory describes conditional database configurations rather than all MySQL/MariaDB deployments.
  • Exact conditions for the second issue are not fully enumerated publicly.

Sources

Direct reading behind this dossier.

3 sources
Token-based API guard Auth Bypass
Laravel Framework GitHub Security Advisories primary advisory

Affected configuration, severity, patch versions and impact.

Unauthorized Data Destruction
Laravel Framework GitHub Security Advisories primary advisory

Separate JSON:API destructive read-path issue and fixed versions.

Discussion

Discussion is reader-contributed. Comments are not part of the BTN dossier or its editorial evidence.

0 visible comments

Join the discussion

Keep comments useful and relevant. Reader contributions may be moderated and are not BTN editorial evidence.

Sign in to comment