توضیح (فارسی)
CVE-2026-145493 یک مشکل دورزدن احراز هویت در فریم ورک next-auth فاش میکند، به ویژه در تابع handleMiddleware در Middleware withAuth. این آسیبپذیری به دلیل بررسیهای ناکافی بر روی پیشوند startsWith رخ میدهد، که به مهاجمان بدون احراز هویت اجازه میدهد درخواستها را دستکاری کنند. با هدفگیری از مسیرهایی مانند /api/authors یا /_next-admin، مهاجمان میتوانند بررسیهای نشست را دور بزنند و به مسیرهای محافظتشده توسط Middleware دسترسی پیدا کنند که منجر به افشای اطلاعات غیرمجاز میشود.
Original description (English)
CVE-2026-145493 reveals an authentication bypass issue in the next-auth framework, specifically in the withAuth middleware's handleMiddleware function. This vulnerability occurs due to improper checks on the startsWith prefix, allowing unauthenticated attackers to manipulate requests. By targeting certain routes, such as /api/authors or /_next-admin, attackers can bypass the session checks and access middleware-protected routes, leading to unauthorized information exposure.