CVE-2026-40155: @auth0/nextjs auth0 Auth0 Next.js SDK Has Improper Vulnerability
MODERATECVE-2026-40155 is a MODERATE (CVSS 5.4) auth0 next.js sdk has improper vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting @auth0/nextjs auth0 libraries in the npm ecosystem. The issue involves auth0 next.js sdk has improper proxy cache lookup. Remediation is available by upgrading affected packages to version 4.18.0.
CVE-2026-40155 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N).
How to Fix CVE-2026-40155
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.18.0
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-2026-40155, 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.18.0), 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-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. 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-2026-40155 Affected @auth0/nextjs auth0 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@auth0/nextjs-auth0
|
npm |
≥ 4.12.0
< 4.18.0
|
4.18.0
|
References
Frequently Asked Questions
What is CVE-2026-40155?
Which @auth0/nextjs auth0 versions are affected?
What version fixes CVE-2026-40155?
Is @auth0/nextjs-auth0 affected?
What is the CVSS score of CVE-2026-40155?
What CWE is associated with CVE-2026-40155?
How can I check npm dependencies for CVE-2026-40155?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xq8m-7c5p-c2r6",
"modified" : "2026-04-21T15:21:46Z",
"published" : "2026-04-21T15:21:46Z",
"aliases" : [ "CVE-2026-40155" ],
"summary" : "Auth0 Next.js SDK has Improper Proxy Cache Lookup",
"details" : "### Description\nIn affected versions of the Next.js SDK, simultaneous requests that trigger a nonce retry may cause the proxy cache fetcher to perform improper lookups for the token request results.\n\n### Which Projects are Affected?\nUsers are affected if they meet all of the following preconditions:\n- Applications using the auth0/nextjs-auth0 SDK, versions 4.12.0 to 4.17.0, and\n- Applications using the proxy handler /me/* and /my-org/* with DPoP enabled.\n\n\n### Affected product and versions\nAuth0/nextjs-auth0 v4.12.0 to 4.17.0\n\n### Resolution\nUpgrade Auth0/nextjs-auth0 version to v4.18.0 or greater\n\n### Acknowledgements\nOkta would like to thank Reynaldo Immanuel for their discovery and responsible disclosure.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@auth0/nextjs-auth0"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.12.0"
}, {
"fixed" : "4.18.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.17.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-xq8m-7c5p-c2r6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40155"
}, {
"type" : "WEB",
"url" : "https://github.com/auth0/nextjs-auth0/commit/98c36dc306970c2230ea1a32efef431d29b99978"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/auth0/nextjs-auth0"
}, {
"type" : "WEB",
"url" : "https://github.com/auth0/nextjs-auth0/releases/tag/v4.18.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-362", "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-21T15:21:46Z",
"nvd_published_at" : "2026-04-17T21:16:33Z"
}
}