{"id":"CVE-2026-39976","published":"2026-04-09T16:50:42Z","modified":"2026-04-09T19:31:53Z","title":"Laravel Passport's TokenGuard Authenticates Unrelated User for Client Credentials Tokens","vendor":"laravel","product":"passport","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00294,"percentile":0.22559,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/laravel/passport/security/advisories/GHSA-349c-2h2f-mxf6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/laravel/passport/issues/1900","tags":["x_refsource_MISC"]},{"url":"https://github.com/thephpleague/oauth2-server/issues/1456#issuecomment-2734989996","tags":["x_refsource_MISC"]},{"url":"https://github.com/laravel/passport/pull/1901","tags":["x_refsource_MISC"]},{"url":"https://github.com/laravel/passport/pull/1902","tags":["x_refsource_MISC"]}],"priority":{"score":9.5,"factors":[{"name":"EPSS percentile","points":4.51},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"laravel","affectedVersions":[{"vendor":"laravel","product":"passport","versions":[">= 13.0.0, < 13.7.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-09T17:38:00.854614Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"laravel/passport","vulnerableRanges":[">=13.0.0, <13.7.1"],"patched":["13.7.1"],"from":["GHSA-349c-2h2f-mxf6"],"provenance":"source"}],"summary":{"text":"Laravel Passport's TokenGuard contains a flaw in its handling of client_credentials tokens, where the JWT sub claim (set to the client identifier, since no user is involved) is passed to retrieveById() without checking that it is a user identifier. An attacker holding any machine-to-machine token over the network, with low privileges and no user interaction, could potentially be authenticated as an unrelated real user, but this depends on the application's user lookup resolving the client identifier to an existing account, which is a high-complexity condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:56Z"},"euvd":{"id":"EUVD-2026-20970","exploited":false,"provenance":"source"}}