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

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-08T19:57:55.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-349c-2h2f-mxf6
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- laravel passport: >= 13.0.0, < 13.7.1; from 13.0.0 before 13.7.1
- laravel/passport (Packagist): from 13.0.0 before 13.7.1

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N`

## References

- <https://github.com/laravel/passport/issues/1900> (exploit, issue-tracking, web)
- <https://github.com/laravel/passport/security/advisories/GHSA-349c-2h2f-mxf6> (mitigation, vendor-advisory, web)
- <https://github.com/thephpleague/oauth2-server/issues/1456#issuecomment-2734989996> (issue-tracking, patch, web)
- <https://github.com/laravel/passport/pull/1901> (issue-tracking, patch, web)
- <https://github.com/laravel/passport/pull/1902> (issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39976> (advisory)
- <https://github.com/laravel/passport> (package)

## Sources

- CVE List: [CVE-2026-39976](https://www.cve.org/CVERecord?id=CVE-2026-39976), CVE Terms of Use, modified 2026-04-09
- GitHub Advisory Database: [GHSA-349c-2h2f-mxf6](https://github.com/advisories/GHSA-349c-2h2f-mxf6), CC-BY-4.0, modified 2026-04-13
- NVD: [CVE-2026-39976](https://nvd.nist.gov/vuln/detail/CVE-2026-39976), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-39976 · Whole record: https://cve.day/CVE-2026-39976.json · Rebuilt by cve.day 2026-11-25T22:59:18.387Z
