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.
Published: 2026-12-05
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

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

{'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'}


Subscriptions

Nextauth.js Next-auth
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-12-05T02:00:07.523Z

Reserved: 2026-12-05T01:44:13.195Z

Link: CVE-2026-145493

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-12-05T03:20:00.503

Modified: 2026-12-05T03:20:00.503

Link: CVE-2026-145493

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses
  • CWE-187

    Partial String Comparison