CVE-2026-145493

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.

CVSS base score
4.8 (v3.1)
Severity
MEDIUM
Attack vector
Network
Weakness
CWE-187
Last modified
December 5, 2026
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

References

View full NVD advisory →

Published the same day

← Back to CVE watch