GHSA-349c-2h2f-mxf6: Laravel Passport: TokenGuard Authenticates Unrelated User for Client Credentials Tokens
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.
References
Code Behaviors & Features
Detect and mitigate GHSA-349c-2h2f-mxf6 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →