React and Next.js Security in Short
React used to run only in the browser. With React Server Components and Next.js it runs on your server too, so a flaw there can be a server flaw: React2Shell (CVE-2025-55182) let attackers run code on servers through React Server Components and was exploited widely.
Some Next.js advisories are published only on GitHub and npm and never get a CVE, so this page can show fewer than npm audit does. Run that as well.
How to Keep React and Next.js Patched
- Update
next,react,react-domand anyreact-server-dom-*packages together, then rebuild and redeploy. Fixingpackage.jsondoes nothing until the new build is live. - Run
npm audit(or your package manager's equivalent) in CI, so a known flaw blocks a deploy. - If you're on a hosted platform, it may block some attacks, but your app's own copy still needs updating.