CVE-2026-40155: auth0 nextjs-auth0 Race Condition
Vulnerability summary
CVE-2026-40155 is a medium (CVSS 5.4) Race Condition vulnerability in auth0 nextjs-auth0. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 17% of scored vulnerabilities.
Timeline
- 17-04-2026PublishedVulnerability first disclosed.
- 20-04-2026Last modifiedVulnerability information updated.
Description
The Auth0 Next.js SDK is a library for implementing user authentication in Next.js applications. In versions 4.12.0 through 4.17.1, simultaneous requests that trigger a nonce retry may cause the proxy cache fetcher to perform improper lookups for the token request results. Users are affected if their project uses both the vulnerable versions and the proxy handler /me/* and /my-org/* with DPoP enabled. This issue has been fixed in version 4.18.0.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
17%
Versus all other CVEs
30-day change
+0.05 pp
From 0.21% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-362Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')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.
- CWE-863Incorrect AuthorizationThe product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.
Affected systems
@auth01 product
- nextjs-auth0≥ 4.12.0, < 4.18.0
Auth01 product
- nextjs-auth0≥ 4.12.0, < 4.18.0
2 vendors · 2 products
References
5 links- github.com/auth0/nextjs-auth0/security/advisories/GHSA-xq8m-7c5p-c2r6X Refsource CONFIRMWEBVendor Advisory
- github.com/auth0/nextjs-auth0/commit/98c36dc306970c2230ea1a32efef431d29b99978X Refsource MISCWEBPatch