Netlify: Next.js patches seven vulnerabilities; upgrade to 16.4.5 or 15.5.29 and redeploy
Brief
Netlify is urging Next.js users to upgrade to 16.4.5 or 15.5.29 and redeploy after seven Medium-severity vulnerabilities were disclosed, some of which affect sites hosted on Netlify.
What was disclosed
- Seven vulnerabilities were disclosed and patched on November 3, 2026, in Next.js 16.4.5 and 15.5.29; all are listed as Medium severity.
- They cover cached data leaking between users, HttpOnly cookie exposure, cache poisoning, and cross-client response injection.
Impact on Netlify
- Not affected on Netlify: the image optimizer SVG rejection bypass (Netlify uses Image CDN), the use cache leak via unstable_cache (isolated serverless invocations), and cross-client response injection (Netlify frames responses itself).
- Affected on Netlify: nested use cache leaks, binary use cache arguments, HttpOnly cookie exposure in Edge Route Handlers, Edge API routes and Middleware, and cache poisoning of shared fallback shells. Upgrading Next.js plus adapter 5.16.6 fixes these.
What to do
- Upgrade next to 16.4.5 (or 15.5.29 on 15.x) and redeploy. The OpenNext Netlify adapter must be @netlify/plugin-nextjs 5.16.6; it is auto-installed on redeploy unless you pin its version. The Middleware cookie case requires the adapter update.
- A new deploy clears content cached by previous deploys in the same deploy context; production does not clear branch deploys or Deploy Previews (and vice-versa). Purge affected entries separately, purge the whole site, or delete those deploys. Responses opted out via Netlify-Cache-ID remain cached and need on-demand purge.
- Publicly available deploy previews and branch deploys may remain vulnerable until automatically deleted; consider deleting them manually.
Generated by AI from the original article. Check the source for full details.