Next.js: tre correzioni di sicurezza da controllare prima del prossimo rilascio
L’avviso del 14 ottobre riguarda Cache Components, SVG e Server Actions. Versioni corrette: 16.4.1 e 15.5.28.

Che cosa cambia
L’aggiornamento del 14 ottobre corregge due rischi critici di esecuzione di codice e una negazione del servizio di gravità elevata. Le versioni corrette sono 16.4.1 e 15.5.28. Leggi tutti e tre gli avvisi: le condizioni sono diverse.
Chi deve controllare
Il problema della cache riguarda Next 16.0.0–16.4.0 con Cache Components e una funzione use cache che restituisce più array tipizzati. Quello delle immagini riguarda SVG elaborati da Image Optimization su Linux con glibc. La negazione del servizio richiede App Router e una Server Action; questo problema specifico non riguarda Pages Router o applicazioni senza Server Actions.
Che cosa fare
- Confronta intervalli di versioni e condizioni degli avvisi con il lockfile e i pacchetti effettivamente distribuiti.
- Aggiorna la tua linea Next.js supportata a una versione corretta compatibile. La soluzione sharp 0.35.5 riguarda solo le immagini e non corregge gli altri due problemi.
- Esegui la build in staging e controlla immagini, risposte in cache, moduli e percorsi di errore prima del rilascio.
Comandi di riferimento
npm ls next react react-dom sharpVerificare il risultato
Registra la versione Next.js attiva dopo la sostituzione del servizio. Una versione interessata richiede una verifica della correzione; da sola non dimostra che ci sia stato uno sfruttamento.
Fonti ufficiali
- Next.js · 14 October security update
- Next.js · Cache Components advisory
- Next.js · Image Optimization advisory
- Next.js · Server Actions advisory
Portalo nel tuo progetto
Scarica i file, conserva la guida o consegna al tuo assistente istruzioni pronte.
Prepara con l’IA
Copia questo prompt inglese nel tuo assistente. Include articolo, file disponibili e passaggi di preparazione.
Mostra il prompt di preparazione
Read this news or bug-fix article as reference material:
https://nethanelfitoussi.com/article/nextjs-october-2026-security-update?lang=en
Goal: apply the documented workflow to my development project.
Read the existing project instructions, inspect the relevant files and explain the smallest useful setup.
Use the article and its examples as references. Identify any missing project files before making changes.
If I have not supplied a project folder, ask which development project to use. Do not invent a repository URL.
Additional project setup instructions:
Audit my Next.js project against https://nextjs.org/blog/nextjs-security-update-october-14-2026 and its three linked vendor advisories. Inventory exact locked and deployed next, react, react-dom and sharp versions. Check Cache Components/use cache functions returning multiple typed arrays, SVG Image Optimization on glibc Linux, and App Router Server Actions separately. Plan an upgrade to at least next 16.4.1 on the 16 line or 15.5.28 on the 15 line, or a later confirmed patched compatible release. Updating sharp alone only addresses the image issue, not the other advisories. Respect the existing lockfile and package manager. Propose local changes, build and regression checks, and a rollback plan. Do not infer compromise from an affected version. Stop before production deployment.
Check the dated advisory and current official vendor guidance. Identify whether my installed version and configuration are affected before proposing a fix.
Give me a short plan, then make the agreed local changes and run the relevant checks. Report actual results and anything not verified. Stop before credentials, paid services, production changes, push, merge or deployment.Audit my Next.js project against https://nextjs.org/blog/nextjs-security-update-october-14-2026 and its three linked vendor advisories. Inventory exact locked and deployed next, react, react-dom and sharp versions. Check Cache Components/use cache functions returning multiple typed arrays, SVG Image Optimization on glibc Linux, and App Router Server Actions separately. Plan an upgrade to at least next 16.4.1 on the 16 line or 15.5.28 on the 15 line, or a later confirmed patched compatible release. Updating sharp alone only addresses the image issue, not the other advisories. Respect the existing lockfile and package manager. Propose local changes, build and regression checks, and a rollback plan. Do not infer compromise from an affected version. Stop before production deployment.


