{"id":"CVE-2026-39976","state":"PUBLISHED","title":"Laravel Passport's TokenGuard Authenticates Unrelated User for Client Credentials Tokens","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.","publishedAt":"2026-04-09T16:50:42.326Z","updatedAt":"2026-04-09T19:31:53.801Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["laravel passport"],"affected":[{"vendor":"laravel","product":"passport","versions":[{"version":">= 13.0.0, < 13.7.1","status":"affected"}]}],"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"],"weaknesses":["CWE-287"],"ingestedAt":"2026-10-29T20:11:50.837Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/39xxx/CVE-2026-39976.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-39976","state":"PUBLISHED","datePublished":"2026-04-09T16:50:42.326Z","dateUpdated":"2026-04-09T19:31:53.801Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-08T00:01:47.628Z"},"containers":{"cna":{"title":"Laravel Passport's TokenGuard Authenticates Unrelated User for Client Credentials Tokens","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"laravel","product":"passport","versions":[{"version":">= 13.0.0, < 13.7.1","status":"affected"}]}],"references":[{"url":"https://github.com/laravel/passport/security/advisories/GHSA-349c-2h2f-mxf6","name":"https://github.com/laravel/passport/security/advisories/GHSA-349c-2h2f-mxf6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/laravel/passport/issues/1900","name":"https://github.com/laravel/passport/issues/1900","tags":["x_refsource_MISC"]},{"url":"https://github.com/thephpleague/oauth2-server/issues/1456#issuecomment-2734989996","name":"https://github.com/thephpleague/oauth2-server/issues/1456#issuecomment-2734989996","tags":["x_refsource_MISC"]},{"url":"https://github.com/laravel/passport/pull/1901","name":"https://github.com/laravel/passport/pull/1901","tags":["x_refsource_MISC"]},{"url":"https://github.com/laravel/passport/pull/1902","name":"https://github.com/laravel/passport/pull/1902","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-287","lang":"en","description":"CWE-287: Improper Authentication","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-04-09T16:50:42.326Z"},"source":{"advisory":"GHSA-349c-2h2f-mxf6","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-09T17:38:00.854614Z","id":"CVE-2026-39976","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-09T19:31:53.801Z"}}]}}}