next-auth 4.2.0 through 4.24.15 Authentication Bypass via withAuth Middleware Path Prefix
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| NextAuth.js | next-auth | unaffected |
|
No data.
No data.
No data available yet.
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
No EPSS score available.
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| Description | next-auth 4.2.0 through 4.24.15 contains an authentication bypass vulnerability in the withAuth middleware handleMiddleware function due to unbounded startsWith prefix checks. Unauthenticated attackers can request routes like /api/authors or /_next-admin to skip session checks and the authorized callback, reaching middleware-protected routes. | |
| Title | next-auth 4.2.0 through 4.24.15 Authentication Bypass via withAuth Middleware Path Prefix | |
| First Time appeared |
Nextauth.js
Nextauth.js next-auth |
|
| Weaknesses | CWE-187 | |
| CPEs | cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Nextauth.js
Nextauth.js next-auth |
|
| References |
| |
| Metrics |
cvssV3_1
|