GHSA-wg9x-qfgw-pxhj
Feathers has an OAuth Callback Account Takeover issue
Quick fix
GHSA-wg9x-qfgw-pxhj — @feathersjs/authentication-oauth: upgrade to the fixed version with the command below.
npm install @feathersjs/authentication-oauth@5.0.42Details
An unauthenticated attacker can send a crafted GET request directly to `/oauth/:provider/callback` with a forged profile in the query string. The OAuth service's authentication payload has a fallback chain that reaches params.query (the raw request query) when Grant's session/state responses are empty. Since the attacker never initiated an OAuth authorize flow, Grant has no session to work with and produces no response, so the fallback fires. The forged profile then drives entity lookup and JWT minting. The attacker gets a valid access token for an existing user without ever contacting the OAuth provider. Critical (CVSS 9.8)
Are you affected?
Enter the version of the package you're using.
Affected packages
5.0.0Fixed in: 5.0.42npm install @feathersjs/authentication-oauth@5.0.42