The vulnerability, GHSA-36qx-fr4f-26g5, describes a middleware bypass in Next.js applications that use the Pages Router with i18n. Specifically, requests to locale-less data routes (/_next/data/<buildId>/<page>.json) were not being processed by middleware, allowing unauthorized access to page data. The analysis of the patch between vulnerable version 16.2.4 and patched version 16.2.5 revealed a key change in the getResolveRoutes function within packages/next/src/server/lib/router-utils/resolve-routes.ts. The commit cb171d749412b27d1602efdae210c89a30851935 introduces logic to handle cases where a default locale is configured but not present in the request URL. It normalizes the path by prepending the default locale. This ensures that the router correctly identifies the route and, crucially, triggers any associated middleware. The vulnerability's root cause was the absence of this normalization within the getResolveRoutes function, which would be the entry point for this vulnerable logic in a runtime profile.