VDB
Sign up
MEDIUM

GHSA-4r8w-3jww-m2rp

Strapi is vulnerable to Insufficient Session Expiration

Quick fix

GHSA-4r8w-3jww-m2rp — @strapi/strapi: upgrade to the fixed version with the command below.

npm install @strapi/strapi@5.24.1

Details

Strapi uses JSON Web Tokens (JWT) for authentication. After logout or account deactivation, the JWT is not invalidated, which allows an attacker who has stolen or intercepted the token to freely reuse it until its expiration date (which is set to 30 days by default, but can be changed). The existence of /admin/renew-token endpoint allows anyone to renew near-expiration tokens indefinitely, further increasing the impact of this attack. This issue has been fixed in version 5.24.1.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@strapi/strapi
Introduced in: 0Fixed in: 5.24.1
Fixnpm install @strapi/strapi@5.24.1

References