CVE-2026-145493

CVE-2026-145493CVE-2026-145493

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.

Scoring

CVSS 4.8 ()
VectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Last modified2026-12-05
Sourced from NVD. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.