Medium

Strapi is vulnerable to Insufficient Session Expiration

  • Disclosed: 16.10.2025
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @strapi/strapi < 5.24.1 5.24.1

References

CVSS score -
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Weakness (CWE)
CWE-613
Platform
npm
Package
@strapi/strapi
Disclosed
16.10.2025
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-4r8w-3jww-m2rp - CC BY 4.0

Vulnerability history: @strapi/strapi

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (11) in the archive
Total entries
11
First → latest
05.2022 05.2026
Without a fix
2
Exploited in attacks
1

Severity breakdown

  • Critical 1
  • High 7
  • Medium 3

Disclosures per year

  1. 2022: 5
  2. 2023: 3
  3. 2024: 1
  4. 2025: 1
  5. 2026: 1
Severity:
  1. Strapi is vulnerable to Insufficient Session Expiration this entry
    Medium CVE-2025-3930 < 5.24.1 5.24.1
  2. High · 8.6 CVE-2024-37818 = 4.24.4 no fix
  3. High · 7.6 CVE-2023-39345 >= 4.0.0, < 4.13.1 4.13.1
  4. High · 7.5 Exploited in attacks CVE-2023-22894 >= 3.2.1, < 4.8.0 4.8.0
  5. High · 8.8 CVE-2022-31367 >= 4.0.0-next.0, < 4.1.10 4.1.10
  6. High · 8.8 CVE-2022-30617 < 4.0.0-beta.15 4.0.0-beta.15
  7. High · 7.5 CVE-2021-46440 >= 4.0.0, < 4.1.5 4.1.5

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.