Vulnerability library
Security checkOctober 22, 2025

Strapi is vulnerable to Insufficient Session Expiration

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpm@strapi/strapi

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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).

Recommendation

Update the @strapi/strapi package to the latest compatible version. Followings are version details:

  • Affected version(s): < 5.24.1
  • Patched version(s): 5.24.1

References

Could your website be exposed too?

SmartScanner can check your website for Strapi is vulnerable to Insufficient Session Expiration and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 22, 2025