Check whether you run an affected Next.js version:
npx next --version
Upgrade to the fixed release for your branch: 16.0.7, 15.5.7, 15.4.8, 15.3.6, 15.2.6, 15.1.9, 15.0.5.Vendor announcement
Bump next in package.json, rebuild and redeploy. Apps hosted on Vercel may already be protected at the platform, but self-hosted ones are not.
Using distro packages? Distros backport fixes under their own version numbers. Check your distro's status for CVE-2025-55182:Debian · Ubuntu · Red Hat · Alpine
This is exploited in the wild: after patching, check exposed systems for signs of compromise.