AZSecureby Azguards Technolabs

Security bulletins · React / Vercel (Next.js)

React Server Components and Next.js: critical code execution fixes (CVE-2026-126187)

Two critical bugs let an attacker run code on a Next.js server without logging in: one in React Server Components, one in SVG image optimization.

Critical · CVSS 9.5Node.js

Free website scan

Is your store serving malware right now?

Checks home, product, cart and checkout pages, blocklists, exposed files and spam shown only to Google. Takes about a minute.

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

  1. 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.
  2. Check that the sharp version your lockfile resolves is 0.35.5 or later.
  3. Rebuild and redeploy; a lockfile change alone does nothing until the app is rebuilt.

Not sure if your site is affected?

The free scan looks at your site from outside: what it runs, exposed files, injected scripts and known malicious domains. It can't read your exact patch level. A deep scan can: it checks the installed versions and packages against this bulletin and looks for what attackers leave behind.

Patched late, or not sure when?

A deep scan checks your server with read-only access, and an Azguards engineer signs off the report.

Sources

Posted by the Azguards security team. Last reviewed .