What happened
React fixed a flaw in react-server-dom-* (CVE-2026-126187, CVSS v4 9.5) where a "use cache" function returning several typed arrays could be abused to run code on the server. Next.js fixed a second critical bug (CVE-2026-96889) in Image Optimization, where a crafted SVG processed by sharp on glibc Linux could lead to code execution.
A third, high-severity fix stops crafted Server Action requests from tying up the CPU. These were out-of-band releases: they shipped outside the normal schedule because of the risk.
What to do
- Upgrade Next.js to the latest release on your line (16.4.5 or 15.5.29) and the react-server-dom-* packages to a fixed version.
- Check that the sharp version your lockfile resolves is 0.35.5 or later.
- Rebuild and redeploy; a lockfile change alone does nothing until the app is rebuilt.
