Staying patched
Next.js ships security fixes as patch releases and announces them in the
security posts on nextjs.org/blog. When one lands, read the advisory, find your
release line, and upgrade to the fixed version:
npm install next@16.4.5 # Active LTS
npm install next@15.5.29 # Maintenance LTS
Two habits keep you covered. First, upgrade patch and minor releases promptly — a security release is not the time to be many versions behind, and staying near the current release makes the eventual jump small. Second, remember that the RSC protocol is shared: React and Next.js must both be patched. An advisory often tracks one issue under two ids — one for the upstream React implementation and one for the downstream Next.js impact — so bumping only one dependency can leave the other exposed.
Not every line is patched forever. The team backports fixes to the supported release lines — an Active LTS line and a Maintenance LTS line — so pick a line that is still supported, and treat an end-of-support line as a reason to upgrade rather than a place to wait.
You are about to answer a short quiz on the security release process.