CVE-2025-46344: @auth0/nextjs auth0 Auth0 NextJS SDK V4 Missing Vulnerability
MODERATECVE-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
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.
npm install @auth0/nextjs-auth0@4.5.1
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
CVE-2025-46344 Affected @auth0/nextjs auth0 Versions
1 component(s)| 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?
Which @auth0/nextjs auth0 versions are affected?
What version fixes CVE-2025-46344?
Is @auth0/nextjs-auth0 affected?
What CWE is associated with CVE-2025-46344?
How can I check npm dependencies for CVE-2025-46344?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}