CVE-2025-46344: @auth0/nextjs auth0 Auth0 NextJS SDK V4 Missing Vulnerability

MODERATE
Advisory Identifier: GHSA-pjr6-jx7r-j4r6
CWE-613
Published
Advisory Summary

CVE-2025-46344 is a MODERATE auth0 nextjs sdk v4 missing vulnerability (CWE-613: Insufficient Session Expiration) affecting @auth0/nextjs auth0 libraries in the npm ecosystem. The issue involves auth0 nextjs sdk v4 missing session invalidation. Remediation is available by upgrading affected packages to version 4.5.1.

CVE-2025-46344 at a Glance

CVE Identifier CVE-2025-46344
GHSA Identifier GHSA-pjr6-jx7r-j4r6
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product @auth0/nextjs auth0
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-46344

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

@auth0/nextjs-auth0 fixed: 4.5.1
npm install @auth0/nextjs-auth0@4.5.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 @auth0/nextjs-auth0

How to Check if You Are Affected

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

npm ls @auth0/nextjs-auth0

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

Note: The npm ls @auth0/nextjs-auth0 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 @auth0/nextjs auth0, 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

### Overview Auth0 NextJS `v4.0.1` to `v4.5.0` does not invoke `.setExpirationTime` when generating a JWE token for the session. As a result, the JWE does not contain an internal expiration claim. While the session cookie may expire or be cleared, the JWE remains valid. ### Am I Affected? You are affected if you are using Auth0 NextJS SDK v4. ### Fix Upgrade to `v4.5.1`.

CVE-2025-46344 Affected @auth0/nextjs auth0 Versions

1 component(s)
Fixed Versions:
4.5.1
Product / Package Ecosystem Affected Versions Fixed Version
@auth0/nextjs-auth0
npm
≥ 4.0.1
< 4.5.1
4.5.1

References

Frequently Asked Questions

What is CVE-2025-46344?
CVE-2025-46344 is a security vulnerability in @auth0/nextjs auth0 involving Auth0 NextJS SDK v4 Missing Session Invalidation under CWE-613: Insufficient Session Expiration.
Which @auth0/nextjs auth0 versions are affected?
Affected versions include releases prior to 4.5.1 across affected packages: @auth0/nextjs-auth0.
What version fixes CVE-2025-46344?
Upgrading to 4.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @auth0/nextjs-auth0 affected?
Yes, @auth0/nextjs-auth0 is affected in releases prior to 4.5.1. Upgrade your dependency to 4.5.1 or later.
What CWE is associated with CVE-2025-46344?
CVE-2025-46344 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-46344?
Run the dependency tree command: 'npm ls @auth0/nextjs-auth0'. 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-pjr6-jx7r-j4r6",
  "modified" : "2025-04-30T17:25:56Z",
  "published" : "2025-04-29T18:54:49Z",
  "aliases" : [ "CVE-2025-46344" ],
  "summary" : "Auth0 NextJS SDK v4 Missing Session Invalidation",
  "details" : "### Overview\nAuth0 NextJS `v4.0.1` to `v4.5.0` does not invoke `.setExpirationTime` when generating a JWE token for the session. As a result, the JWE does not contain an internal expiration claim. While the session cookie may expire or be cleared, the JWE remains valid.\n\n### Am I Affected?\nYou are affected if you are using Auth0 NextJS SDK v4.\n\n### Fix\nUpgrade to `v4.5.1`.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@auth0/nextjs-auth0"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.1"
      }, {
        "fixed" : "4.5.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-pjr6-jx7r-j4r6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-46344"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/auth0/nextjs-auth0/commit/a4f061aed02ffa132feca8adfbd11704df17e1c3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/auth0/nextjs-auth0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/auth0/nextjs-auth0/releases/tag/v4.5.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-613" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-29T18:54:49Z",
    "nvd_published_at" : "2025-04-29T21:15:51Z"
  }
}