# CVE-2025-3930: Strapi insufficient session expiration in JWT authentication

Source: https://junglewise.ai/threats/cve-2025-3930-strapi-insufficient-session-expiration-in-jwt-authentication  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-10-16. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2025-3930 · Severity: medium · CVSS 4 · Published 2025-10-16

Strapi is an open-source headless CMS platform used to build content management systems and APIs. The platform uses JWT tokens for user authentication, but these tokens are not invalidated when a user logs out or their account is deactivated. An attacker who obtains a token can use it for up to 30 days (or longer if renewed), potentially gaining unauthorized access to content and administrative functions. This is particularly dangerous because there is a publicly accessible token renewal endpoint that allows indefinite token lifetime extension.

Technologies: [@strapi/strapi (npm)](https://junglewise.ai/threats/technologies/strapi-strapi). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2025-3930 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-3930 being exploited in the wild.

**How severe is CVE-2025-3930?** Medium severity, with a CVSS score of 4, published 16 October 2025.

**Which products and versions are affected?** @strapi/strapi (npm) SEMVER:introduced=0,fixed=5.24.1.

**Is there a fix for CVE-2025-3930?** Yes. @strapi/strapi (npm): upgrade to 5.24.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-3930 attacked?** It is attacked over the network.

**Am I affected by CVE-2025-3930?** Check whether you run @strapi/strapi (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @strapi/strapi (npm): upgrade to 5.24.1 or later

  ```sh
  npm install @strapi/strapi@5.24.1
  ```


## Technical details

Strapi uses JSON Web Tokens (JWT) for authentication but fails to invalidate tokens upon user logout or account deactivation (CWE-613: Insufficient Session Expiration). An attacker who steals or intercepts a JWT token can reuse it for authentication until the token naturally expires—by default 30 days, but configurable. The vulnerability is exacerbated by the presence of an unauthenticated `/admin/renew-token` endpoint that allows attackers to renew expiring tokens indefinitely, extending their window of unauthorized access. An attacker with a stolen token gains access to the same resources and administrative functions as the legitimate user. The vulnerability affects all versions prior to 5.24.1, which includes a fix for this issue.

## Affected products

- Strapi Strapi All versions prior to 5.24.1

## Identifiers

- CVE-2025-3930
- GHSA-4r8w-3jww-m2rp

## Timeline

- 2025-10-16: disclosed
- 2025-10-16: patched: Fixed in version 5.24.1

## References

- [https://cert.pl/en/posts/2025/06/CVE-2025-3930](https://cert.pl/en/posts/2025/06/CVE-2025-3930)
- [https://github.com/strapi/strapi](https://github.com/strapi/strapi)
- [https://strapi.io/](https://strapi.io/)
- [https://strapi.io/blog/security-disclosure-of-vulnerabilities-cve-October-2025](https://strapi.io/blog/security-disclosure-of-vulnerabilities-cve-October-2025)

## Related threats

- [Strapi administrative account takeover via relational query filtering](https://junglewise.ai/threats/cve-2026-27886-strapi-administrative-account-takeover-via-relational-query)
- [Strapi Server-Side Request Forgery](https://junglewise.ai/threats/cve-2024-37818-strapi-server-side-request-forgery)
- [Strapi authorization bypass in user registration API](https://junglewise.ai/threats/cve-2023-39345-strapi-authorization-bypass-in-user-registration-api)
- [Strapi content-type attribute disclosure via extension](https://junglewise.ai/threats/cve-2023-34093-strapi-content-type-attribute-disclosure-via-extension)
- [Strapi information disclosure via private field filtering](https://junglewise.ai/threats/cve-2023-22894-strapi-information-disclosure-via-private-field-filtering)
