CVE-2026-145493

next-auth 4.2.0 through 4.24.15 Authentication Bypass via withAuth Middleware Path Prefix

Published Dec 5, 2026 CVSS 4.0 · 6.3 Medium EPSS n/a KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Dec 5, 2026, 2:00 AM
Reserved
Dec 5, 2026, 1:44 AM
Status
Received
Published
Dec 5, 2026, 3:20 AM
Modified
Dec 5, 2026, 3:20 AM