CVE Professor
/
All CVEs
CVE-2026-145493

CVE-2026-145493 — NextAuth.js Next-auth (4.24.15) — CWE-187

MEDIUM CVSS 6.3 CVE.org

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.

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 v4.0 Vector Metrics
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
Attack Vector Network AV:N
Attack Complexity High AC:H
Attack Reqs. Present AT:P
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. Low VC:L
Vuln. Integrity Low VI:L
Vuln. Avail. None VA:N
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-145493
CVSS 6.3/10 · MEDIUM · 05.12.2026
CWE: CWE-187
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
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Authentication Bypass
Summary: 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.
Affected: NextAuth.js next-auth

⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N).

🌍 REAL WORLD IMPACT
All confidential data readable/stealable; limited integrity modification (I:L).

🛡️ REMEDIATION
→ Apply vendor security update for NextAuth.js next-auth.
→ Add MFA, strengthen sessions, implement rate limiting.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📋 Routine update cycle (30 days)

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="NextAuth.js next-auth"
CVSS Score
6.3 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-187
Affected Products (1)
NextAuth.js:next-auth (4.24.15)
References & Advisories (2)
Related CVEs
6.5
CVE-2026-145488
GPAC through 26.07.0 contains a NULL pointer dereference vulnerability that allows attackers to crash the proc
6.3
CVE-2026-145492
form-data through 4.0.6 contains a CRLF injection vulnerability in _multiPartHeader that allows attackers to i
6.3
CVE-2026-145494
Hypercorn through 0.18.0 contains a header spoofing vulnerability in the WSGI wrapper _build_environ that allo
6.0
CVE-2026-145495
Hoppscotch self-hosted backend through 2026.11.1 contains an authorization bypass vulnerability that allows au
5.5
CVE-2026-145483
GPAC through 26.07.0 contains a type confusion vulnerability in ils2d_check_changes() that allows attackers to
5.5
CVE-2026-145484
GPAC through 26.07.0 contains a heap buffer overflow vulnerability in stbl_AddCTS() that allows attackers to c
5.5
CVE-2026-145485
GPAC through 26.07.0 contains a type confusion vulnerability in PointSet2D_Draw() that allows attackers to cra