[Security] Bump next from 15.1.2 to 15.2.4
Bumps next from 15.1.2 to 15.2.4. This update includes a security fix.
Vulnerabilities fixed
Authorization Bypass in Next.js Middleware
Impact
It is possible to bypass authorization checks within a Next.js application, if the authorization check occurs in middleware.
Patches
- For Next.js 15.x, this issue is fixed in
15.2.3
- For Next.js 14.x, this issue is fixed in
14.2.25
- For Next.js 13.x, this issue is fixed in
13.5.9
- For Next.js 12.x, this issue is fixed in
12.3.5
- For Next.js 11.x, consult the below workaround.
Note: Next.js deployments hosted on Vercel are automatically protected against this vulnerability.
Workaround
If patching to a safe version is infeasible, it is recommend that you prevent external user requests which contain the
x-middleware-subrequest
header from reaching your Next.js application.Credits
- Allam Rachid (zhero;)
- Allam Yasser (inzo_)
Patched versions: 15.2.3 Affected versions: >= 15.0.0, < 15.2.3
Release notes
Sourced from next's releases.
v15.2.4
[!NOTE]
This release is backporting bug fixes. It does not include all pending features/changes on canary.Core Changes
- Match subrequest handling for edge and node (#77474)
- exclude images and static media from dev origin check (#77417)
- ensure /__next middleware URLs are included in the origin check (#77416)
- remove direct ip/port bypass in dev origin check (#77414)
- switch development origin verification to be opt-in rather than opt-out (#77395)
Credits
Huge thanks to
@ijjk
and@ztanner
for helping!v15.2.3
[!NOTE]
This release is backporting bug fixes. It does not include all pending features/changes on canary. This release contains a security patch for CVE-2025-29927.Core Changes
- Update default allowed origins list (#77212)
- unify allowed origin detection handling (#77053)
- Add dev warning for cross-origin and stabilize allowedDevOrigins (#77044)
- Ensure deploymentId is used for CSS preloads (#77210)
- Update middleware request header (#77201)
- [metadata] remove the default segement check for metadata rendering (#77119)
- [ts-hint] fix vscode type hint plugin enabling (#77099)
- [metadata] re-insert icons to head for streamed metadata (#76915)
Credits
Huge thanks to
@ijjk
,@ztanner
, and@huozhi
for helping!v15.2.2
Core Changes
- [dev-overlay] fix styling on overflow error messages, add button hover state: #76771
- Fix: respond 405 status code on OPTIONS request to SSG page: #76767
- [dev-overlay] Always show relative paths: #76742
- [metadata] remove the duplicate metadata in the error boundary: #76791
- Upgrade React from
d55cc79b-20250228
to443b7ff2-20250303
: #76804- [dev-overlay] Ignore animations on page load: #76834
- fix: remove useless set-cookie in action-handler: #76839
- Turbopack: handle task cancelation: #76831
- Upgrade React from
443b7ff2-20250303
toe03ac20f-20250305
: #76842
... (truncated)
Commits
-
804aa35
v15.2.4 -
ecb72ee
Match subrequest handling for edge and node (#77474) -
25f810b
exclude images and static media from dev origin check (#77417) -
d9bcb83
ensure /__next middleware URLs are included in the origin check (#77416) -
cfeaa86
remove direct ip/port bypass in dev origin check (#77414) -
f847302
switch development origin verification to be opt-in rather than opt-out (#77395) -
535e26d
v15.2.3 -
2fcae1d
Update default allowed origins list (#77212) -
adf5462
unify allowed origin detection handling (#77053) -
5e59da1
Add dev warning for cross-origin and stabilize allowedDevOrigins (#77044) - Additional commits viewable in compare view