Coming from an advisory and noticing that we are using this project
ADVISORY: Next.js – Critical Authentication Bypass Vulnerability – CVE-2025-29927
Summary
A critical security vulnerability (CVE-2025-29927) in Next.js middleware allows attackers to bypass authorization checks in affected versions.
This issue impacts all versions of Next.js, with patches now available. Users of self-hosted deployments should update immediately.
Affected Versions
11.1.4 through and including 13.5.6
14.0 up to 14.2.25
15.0 up to 15.2.3
Fixed Versions
12.3.5
13.5.9
14.2.25
15.2.3
Details
Impact:
Authorization checks in Next.js middleware can be bypassed, allowing unauthorized access.
Exploitability:
No preconditions required – all affected versions are vulnerable.
Checking NPM's audit resulted in quite a few. Of course some are build/dev dependencies and would never see the light of day (public web path).
❯ npm audit
...
187 vulnerabilities (7 low, 64 moderate, 72 high, 44 critical)
Proposed Solution:
Try to bring the critical and high NPM security issues down to 0 by upgrading some of the dependencies to newer releases.
Coming from an advisory and noticing that we are using this project
Checking NPM's audit resulted in quite a few. Of course some are build/dev dependencies and would never see the light of day (public web path).
Proposed Solution:
Try to bring the critical and high NPM security issues down to 0 by upgrading some of the dependencies to newer releases.