CVE-2025-3930: @strapi/strapi Strapi Is Vulnerable To Insufficient Vulnerability

MODERATE
Advisory Identifier: GHSA-4r8w-3jww-m2rp
CWE-613
Published
Advisory Summary

CVE-2025-3930 is a MODERATE strapi is vulnerable to insufficient vulnerability (CWE-613: Insufficient Session Expiration) affecting @strapi/strapi libraries in the npm ecosystem. The issue involves strapi is vulnerable to insufficient session expiration. Remediation is available by upgrading affected packages to version 5.24.1.

CVE-2025-3930 at a Glance

CVE Identifier CVE-2025-3930
GHSA Identifier GHSA-4r8w-3jww-m2rp
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product @strapi/strapi
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-3930

To remediate this vulnerability, upgrade all affected @strapi/strapi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@strapi/strapi fixed: 5.24.1
npm install @strapi/strapi@5.24.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @strapi/strapi

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-3930, inspect your project dependencies using npm:

npm ls @strapi/strapi

Analyze the terminal output to locate any version of @strapi/strapi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.24.1), your application is affected.

Note: The npm ls @strapi/strapi command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". In @strapi/strapi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-3930 Affected @strapi/strapi Versions

1 component(s)
Fixed Versions:
5.24.1
Product / Package Ecosystem Affected Versions Fixed Version
@strapi/strapi
npm
< 5.24.1
5.24.1

References

Frequently Asked Questions

What is CVE-2025-3930?
CVE-2025-3930 is a security vulnerability in @strapi/strapi involving Strapi is vulnerable to Insufficient Session Expiration under CWE-613: Insufficient Session Expiration.
Which @strapi/strapi versions are affected?
Affected versions include releases prior to 5.24.1 across affected packages: @strapi/strapi.
What version fixes CVE-2025-3930?
Upgrading to 5.24.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @strapi/strapi affected?
Yes, @strapi/strapi is affected in releases prior to 5.24.1. Upgrade your dependency to 5.24.1 or later.
What CWE is associated with CVE-2025-3930?
CVE-2025-3930 is classified under CWE-613: Insufficient Session Expiration (According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.").
How can I check npm dependencies for CVE-2025-3930?
Run the dependency tree command: 'npm ls @strapi/strapi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4r8w-3jww-m2rp",
  "modified" : "2025-10-22T19:36:22Z",
  "published" : "2025-10-16T12:30:23Z",
  "aliases" : [ "CVE-2025-3930" ],
  "summary" : "Strapi is vulnerable to Insufficient Session Expiration",
  "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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@strapi/strapi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.24.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3930"
  }, {
    "type" : "WEB",
    "url" : "https://cert.pl/en/posts/2025/06/CVE-2025-3930"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/strapi/strapi"
  }, {
    "type" : "WEB",
    "url" : "https://strapi.io"
  }, {
    "type" : "WEB",
    "url" : "https://strapi.io/blog/security-disclosure-of-vulnerabilities-cve-October-2025"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-613" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-16T21:21:44Z",
    "nvd_published_at" : "2025-10-16T11:15:29Z"
  }
}