{"api_version":"1","generated_at":"2026-04-09T20:37:05+00:00","cve":"CVE-2026-39976","urls":{"html":"https://cve.report/CVE-2026-39976","api":"https://cve.report/api/cve/CVE-2026-39976.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-39976","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-39976"},"summary":{"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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-04-09 17:16:31","updated_at":"2026-04-09 17:16:31"},"problem_types":["CWE-287","CWE-287 CWE-287: Improper Authentication"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","data":{"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"}}],"references":[{"url":"https://github.com/thephpleague/oauth2-server/issues/1456#issuecomment-2734989996","name":"https://github.com/thephpleague/oauth2-server/issues/1456#issuecomment-2734989996","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/laravel/passport/security/advisories/GHSA-349c-2h2f-mxf6","name":"https://github.com/laravel/passport/security/advisories/GHSA-349c-2h2f-mxf6","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/laravel/passport/pull/1902","name":"https://github.com/laravel/passport/pull/1902","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/laravel/passport/pull/1901","name":"https://github.com/laravel/passport/pull/1901","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/laravel/passport/issues/1900","name":"https://github.com/laravel/passport/issues/1900","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-39976","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39976","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"laravel","product":"passport","version":"affected >= 13.0.0, < 13.7.1","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"passport","vendor":"laravel","versions":[{"status":"affected","version":">= 13.0.0, < 13.7.1"}]}],"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."}],"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","description":"CWE-287: Improper Authentication","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-04-09T16:50:42.326Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/laravel/passport/security/advisories/GHSA-349c-2h2f-mxf6","tags":["x_refsource_CONFIRM"],"url":"https://github.com/laravel/passport/security/advisories/GHSA-349c-2h2f-mxf6"},{"name":"https://github.com/laravel/passport/issues/1900","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/passport/issues/1900"},{"name":"https://github.com/thephpleague/oauth2-server/issues/1456#issuecomment-2734989996","tags":["x_refsource_MISC"],"url":"https://github.com/thephpleague/oauth2-server/issues/1456#issuecomment-2734989996"},{"name":"https://github.com/laravel/passport/pull/1901","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/passport/pull/1901"},{"name":"https://github.com/laravel/passport/pull/1902","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/passport/pull/1902"}],"source":{"advisory":"GHSA-349c-2h2f-mxf6","discovery":"UNKNOWN"},"title":"Laravel Passport's TokenGuard Authenticates Unrelated User for Client Credentials Tokens"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-39976","datePublished":"2026-04-09T16:50:42.326Z","dateReserved":"2026-04-08T00:01:47.628Z","dateUpdated":"2026-04-09T16:50:42.326Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-04-09 17:16:31","lastModifiedDate":"2026-04-09 17:16:31","problem_types":["CWE-287","CWE-287 CWE-287: Improper Authentication"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":1.8,"impactScore":4.7}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"39976","Ordinal":"1","Title":"Laravel Passport's TokenGuard Authenticates Unrelated User for C","CVE":"CVE-2026-39976","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"39976","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Laravel Passport's TokenGuard Authenticates Unrelated User for C"}]}}}