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.
Metrics
Affected Vendors & Products
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Sat, 05 Dec 2026 02:15:00 +0000
| 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
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-12-05T02:00:07.523Z
Reserved: 2026-12-05T01:44:13.195Z
Link: CVE-2026-145493
No data.
Status : Received
Published: 2026-12-05T03:20:00.503
Modified: 2026-12-05T03:20:00.503
Link: CVE-2026-145493
No data.
OpenCVE Enrichment
Updated: 2026-12-05T07:00:18Z
Weaknesses