CVE-2026-145493
next- auth 4. 2. 0 through 4. 24. 15 Authentication Bypass via withAuth Middleware Path Prefix
- Severity
- 6.3MediumNetwork attack, no privileges, no user interactionCVSS 4.0, CVE List
- Exploitation
- UnknownNo source reports exploitation yet.
- Exploit chance
- UnknownNo source reports an EPSS score yet.
- Listed fix
- None listedNo source lists a fixed version in its version data.Check the description and references.
Overview
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 4.0 vector
Exploitability
- Attack vector
- Network
- Complexity
- High
- Attack requirements
- Present
- Privileges needed
- None
- User interaction
- None
Impact on the vulnerable system
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Impact on subsequent systems
- Confidentiality
- None
- Integrity
- None
- Availability
- None
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NAffected
Products 2
Sources
CVE List Score usedCVSS 4.06.3
next-auth 4.2.0 through 4.24.15 Authentication Bypass via withAuth Middleware Path Prefix
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.
- Record
CVE-2026-145493- CVSS 4.0
- 6.3 Medium
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 - CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Weakness
- CWE-187
- Updated
- 2026-12-05
EUVDEUVD-2026-145097CVSS 4.06.3
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.
- Record
EUVD-2026-145097- CVSS 4.0
- 6.3 Medium
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 - Updated
- 2026-12-05
GitHub AdvisoriesGHSA-6pw8-chrv-7mqxCVSS 4.06.3
next-auth 4.2.0 through 4.24.15 contains an authentication bypass vulnerability in the withAuth...
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.
- Record
GHSA-6pw8-chrv-7mqx- CVSS 4.0
- 6.3 Medium
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Weakness
- CWE-187
- Updated
- 2026-12-05
NVDCVSS 4.06.3
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.
- Record
CVE-2026-145493- CVSS 4.0
- 6.3 Medium
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Weakness
- CWE-187
- Updated
- 2026-12-05
OSVCVSS 4.06.3
next-auth 4.2.0 through 4.24.15 Authentication Bypass via withAuth Middleware Path Prefix
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.
- Record
CVE-2026-145493- CVSS 4.0
- 6.3 Medium
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 - Weakness
- CWE-187
- Updated
- 2026-12-05
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| References | OSV | |
| Other IDs, products, published date | EUVD | |
| Other IDs, references, severity | GitHub Advisories | |
| Severity | NVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/nextauthjs/next-auth/blob/next-auth%404.24.15/packages/next-auth/src/next/middleware.ts
vulncheck.com/advisories/next-auth-4.2.0-through-4.24.15-authentication-bypass-via-withauth-middleware-path-prefix
nvd.nist.gov/vuln/detail/CVE-2026-145493
github.com/advisories/GHSA-6pw8-chrv-7mqx
github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145493.json
github.com/nextauthjs/next-auth