VDB
Sign up
MEDIUM

GHSA-583x-23h9-f5w7

Strapi does not verify the access or ID tokens issued during the OAuth flow

Quick fix

GHSA-583x-23h9-f5w7 — @strapi/plugin-users-permissions: upgrade to the fixed version with the command below.

npm install @strapi/plugin-users-permissions@4.6.0

Details

Strapi 3.2.1 until 4.6.0 does not verify the access or ID tokens issued during the OAuth flow when the AWS Cognito login provider is used for authentication. A remote attacker could forge an ID token that is signed using the 'None' type algorithm to bypass authentication and impersonate any user that use AWS Cognito for authentication.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@strapi/plugin-users-permissions
Introduced in: 3.2.1Fixed in: 4.6.0
Fixnpm install @strapi/plugin-users-permissions@4.6.0

References