Next.js has a Middleware / Proxy bypass in App Router applications via segment-prefetch routes
Impact
App Router applications that rely on middleware or proxy-based checks for authorization can allow unauthorized access through transport-specific route variants used for segment prefetching. In affected configurations, specially crafted .rsc and segment-prefetch URLs can resolve to the same page without being matched by the intended middleware rule, which can allow protected content to be reached without the expected authorization check.
Fix
We now include App Router transport variants when generating middleware matchers, so middleware protections are applied consistently to those requests as well as to the normal page URL.
Workarounds
If you cannot upgrade immediately, enforce authorization in the underlying route or page logic instead of relying solely on middleware.
Affected Packages
| Ecosystem | Package | Vulnerable Versions | Patched Version |
|---|---|---|---|
| npm |
next
|
>= 16.0.0, < 16.2.5>= 15.2.0, < 15.5.16 |
16.2.5
|
chore(deps): bump the majors group with 4 updates
Open about 4 hours agoBump next from 16.1.7 to 16.2.7 in /templates/next-app
Open about 6 hours agodeps(deps): bump next from 15.5.18 to 16.2.7
Open about 6 hours agonpm(deps-dev): bump the development-dependencies group with 10 updates
Open about 7 hours agochore(deps): bump the production-dependencies group across 1 directory with 15 updates
Open about 7 hours agonpm(deps-dev): bump the development-dependencies group across 1 directory with 10 updates
Open about 7 hours agoBump eslint-config-next from 16.0.1 to 16.2.7
Closed about 9 hours agonpm(deps): bump the minor-and-patch group across 1 directory with 7 updates
Open about 10 hours agochore(deps): bump the npm_and_yarn group across 8 directories with 3 updates
Closed about 11 hours agoBump the npm_and_yarn group across 1 directory with 7 updates
Open about 11 hours agochore(deps): bump next from 15.5.18 to 16.2.7
Open about 11 hours agochore(deps): Bump the npm_and_yarn group across 19 directories with 7 updates
Closed about 11 hours agoBump the next-react group across 1 directory with 4 updates
Open about 11 hours agoBump the npm_and_yarn group across 6 directories with 2 updates
Open about 12 hours agochore(deps): bump the npm_and_yarn group across 17 directories with 9 updates
Open about 12 hours agochore(deps): bump the npm_and_yarn group across 30 directories with 4 updates
Open about 13 hours agochore(deps): bump the npm_and_yarn group across 22 directories with 7 updates
Closed about 13 hours agochore(deps)(deps): bump the npm-minor-and-patch group across 1 directory with 9 updates
Open about 14 hours agochore(deps): bump the npm_and_yarn group across 6 directories with 3 updates
Closed about 16 hours agochore(deps): bump the npm_and_yarn group across 7 directories with 2 updates
Closed about 17 hours agobuild(deps): bump the npm_and_yarn group across 1 directory with 11 updates
Closed about 18 hours agoBump eslint-config-next from 15.5.18 to 16.2.6
Open 1 day agochore(deps)(deps-dev): bump eslint-config-next from 15.5.18 to 16.2.6 in /web
Open 1 day agochore(deps): Bump next from 16.1.6 to 16.2.6
Open 1 day agoBump next from 15.3.2 to 15.5.18 in /web in the npm_and_yarn group across 1 directory
Open 1 day agobuild(deps): bump the all-dependencies group across 1 directory with 18 updates
Open 1 day agobuild(deps): bump next from 16.2.1 to 16.2.6
Open 1 day agochore(deps): bump the next group with 2 updates
Open 1 day agochore(deps-dev)(deps-dev): bump the development-minor-patch group with 5 updates
Open 1 day agonpm(dev): bump eslint-config-next from 15.5.4 to 16.2.6
Open 1 day agonpm: bump next from 16.2.4 to 16.2.6
Open 1 day agonpm(dev): bump eslint-config-next from 15.5.4 to 16.2.6
Open 1 day agochore(deps): bump the next group with 2 updates
Closed 1 day agobuild(deps): bump the npm_and_yarn group across 4 directories with 3 updates
Open 1 day agobuild(deps): bump the npm_and_yarn group across 3 directories with 4 updates
Open 1 day agobuild(deps): bump the npm_and_yarn group across 4 directories with 6 updates
Open 1 day agofeat(deps): Bump the npm_and_yarn group across 14 directories with 4 updates
Open 1 day agofeat(deps): Bump the npm_and_yarn group across 17 directories with 5 updates
Closed 1 day agochore(deps): bump the minor-and-patch group across 1 directory with 13 updates
Open 1 day agodeps(deps-dev): bump eslint-config-next from 14.2.35 to 16.2.6
Open 1 day agobuild(deps): bump next from 16.0.10 to 16.2.6
Open 1 day agoBump the production-dependencies group across 1 directory with 4 updates
Closed 1 day agoBuild(deps): Bump the npm_and_yarn group across 1 directory with 5 updates
Closed 1 day agoBump next from 15.5.18 to 16.2.6 in /apps/web
Closed 1 day agobuild(deps): Bump next from 15.1.3 to 15.5.18 in /apps/web
Closed 1 day agochore(deps): bump next from 14.2.35 to 15.5.18
Closed 2 days agoBump next from 15.5.18 to 16.2.6 in the production-dependencies group
Open 2 days agochore(deps): Bump next from 15.5.18 to 16.2.6
Open 2 days agoBump the npm_and_yarn group across 2 directories with 3 updates
Open 2 days agochore(deps)(deps-dev): bump the development-dependencies group across 1 directory with 11 updates
Open 2 days agoActions
Advisory Details
| Published: | May 11, 2026 22 days ago |
| Updated: | May 23, 2026 10 days ago |
| CVSS Score: | 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| EPSS: | 0.05% 17th percentile |
| Source: | Github |
| Classification: | GENERAL |
| UUID: | GSA_kwCzR0hTQS0yNjdjLTZncnItaDUzZs4ABWkK |