1. Archivio CVE
  2. 2026
  3. CVE-2026-145493

CVE-2026-145493

4.8 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N 4.8 – Media

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
nextauth.js next-auth >= 4.2.0 <= 4.24.15 –
Tutte le 10 vulnerabilità di Nextauth.js Next-auth

Tipo di vulnerabilità

CWE-187 Partial String Comparison

The product performs a string comparison that only examines a portion of the string before determining whether there is a match.

Impatto sui sistemi

AmbitoImpatto
Integrità, Controllo degli accessi Alterare la logica di esecuzione, Aggirare i meccanismi di protezione

Come si previene

Test Thoroughly test the comparison scheme before deploying code into production. Perform positive testing as well as negative testing.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 20 CVE di tipo CWE-187, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org