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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 13.7.1 (CNA); fix release not confirmed
- Status: published
- Published: 2026-04-09 · Modified: 2026-04-09
- Record: https://cvemate.com/vulnerability/CVE-2026-39976 · JSON: https://cvemate.com/vulnerability/CVE-2026-39976/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N
- EPSS: 0.301%, percentile 24.511%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- laravel passport: ≥ 13.0.0, \< 13.7.1

## 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>

---

Data as of 2026-12-05T11:16:00.204Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
