{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-39976","id":"CVE-2026-39976","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 unrel","descriptionLong":"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.","published":"2026-04-09T16:50:42.326Z","updated":"2026-10-28T02:30:22.434396703Z","reserved":"2026-04-08T00:01:47.628Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["laravel passport"],"affectedProducts":[{"vendor":"laravel","product":"passport","defaultStatus":null,"versions":[{"version":">= 13.0.0, < 13.7.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"laravel/passport","purl":"pkg:composer/laravel/passport","ranges":[">=13.0.0 <13.7.1"],"fixed":["13.7.1"],"advisory":"GHSA-349c-2h2f-mxf6"}],"cwes":["CWE-287"],"aliases":["GHSA-349c-2h2f-mxf6"],"references":[{"url":"https://github.com/laravel/passport/security/advisories/GHSA-349c-2h2f-mxf6","tags":["x_refsource_CONFIRM","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/laravel/passport/issues/1900","tags":["x_refsource_MISC","Exploit","Issue Tracking","report","web"]},{"url":"https://github.com/thephpleague/oauth2-server/issues/1456#issuecomment-2734989996","tags":["x_refsource_MISC","Issue Tracking","Patch","report","web"]},{"url":"https://github.com/laravel/passport/pull/1901","tags":["x_refsource_MISC","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/laravel/passport/pull/1902","tags":["x_refsource_MISC","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39976.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39976","tags":["advisory"]},{"url":"https://github.com/laravel/passport","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00294,"epssPercentile":0.22428,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-39976","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39976","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-39976","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-349c-2h2f-mxf6","ok":true,"note":"GHSA-349c-2h2f-mxf6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-39976","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["laravel"],"critical":[],"attention":null}