Guide

October 2026 security updates: Next.js, Node.js and PHP in one place

By Aman Singh · Published · 6 min read

Three of the most common web stacks shipped critical security fixes within one week in October 2026: Next.js on 14 October, then Node.js and PHP on 21 October. If your product runs on more than one of them, this page has every fixed version in one place, a quick check for each, and the order to patch in. Each row links to a full guide with a tested checker script.

Want them patched and checked for you? Next.js, Node.js and Python fixes →

Every fix in one table

StackMain issueSeverityFixed inGuide
Next.js (14 Oct)Image Optimization RCE with SVG (CVE-2026-96889); use cache RCE; Server Actions DoSCritical16.4.1, 15.5.28; sharp 0.35.5+Next.js guide
Node.js (21 Oct)Brotli decoder out-of-bounds write, possible RCE (CVE-2026-111497); nine more fixesHigh26.12.1, 24.22.1, 22.23.4Node.js guide
PHP (21 Oct)PHP2Shell: two unauthenticated RCEs (CVE-2026-109618, CVE-2026-109619)Critical, 9.28.5.12, 8.4.27, 8.3.36, 8.2.35PHP2Shell guide

Check all three in two minutes

These one-liners answer "am I on a fixed version?". Run them on the machine or container that serves traffic, not only your laptop.

Terminal
# Next.js: installed versions (need next 16.4.1 / 15.5.28 and sharp 0.35.5+)
npm ls next sharp

# Node.js: prints -17 on patched builds, undefined on unpatched ones
node -p "require('zlib').constants.BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH"

# PHP: the CLI version (also check the PHP your web server runs)
php -v
  • Next.js: Next.js 15.5.28 still accepts sharp 0.34, which has no fix, so check sharp separately. The Next.js checker also detects which affected features your app uses.
  • Node.js: the Brotli version number does not change with the fix; the zlib constant does. The Node.js checker also finds where your code decodes Brotli from outside.
  • PHP: php -v shows the command-line PHP, which can differ from PHP-FPM or mod_php, and Ubuntu fixes keep the old version number. The PHP checker handles both.

All three checkers are open source on GitHub: next-security-check, node-brotli-check and php2shell-check.

What to patch first

  1. 1
    Internet-facing PHP on Apache mod_php. PHP demonstrated attacks there that work before any application code runs.
  2. 2
    Self-hosted Next.js on Linux that serves images. The image optimizer flaw needs no login, and most sites use next/image.
  3. 3
    Express 5 APIs and services that fetch untrusted URLs on an unpatched Node.js. Both pass outside Brotli data to the vulnerable decoder.
  4. 4
    Everything else, including staging servers, admin tools and old containers that still run.

If someone else hosts it

  • Vercel: rolls out Node.js patch releases itself; your Next.js version is still yours to update and redeploy.
  • Docker: pin the fixed tags (for example node:24.22.1-alpine, php:8.4.27-fpm), rebuild and redeploy. Pulling a new image does not change containers that are already running.
  • Shared or managed PHP hosting: the host updates PHP, but check the version your site actually runs through the web.

Dates coming next

DateWhat happens
28 October 2026Node.js 26 becomes the active LTS line
5 November 2026PHP 8.6.0 RC5 (last release candidate)
19 November 2026PHP 8.6.0 general availability
31 December 2026PHP 8.2 security support ends

Common questions

Which security updates came out in October 2026 for web developers?+
Next.js 16.4.1 and 15.5.28 on 14 October, Node.js 26.12.1, 24.22.1 and 22.23.4 on 21 October, and PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on 21 October. All three include critical or high-severity fixes.
Do I need to update Node.js if I already updated Next.js?+
Yes. They are separate fixes: Next.js fixed its own code and its image library, while the Node.js release fixed the runtime's Brotli decoder. A Next.js app on an unpatched Node.js still has the Node.js issue.
What if I am on Node.js 20 or PHP 8.1?+
Both are end of life and get no fixed release from the project. Move to Node.js 24 or 26, and PHP 8.4 or 8.5, or use a distribution or long-term support vendor that ships backported fixes.

Want all of it patched for you?

I update Next.js apps, Node.js runtimes and PHP servers, fix what the upgrade breaks, and verify the result. See Next.js and Node.js bug fixing and PHP security update and upgrade.

Next steps

Keep reading

Need a hand with this?

Tell me what you are working on. Free scoping call, fixed quote within 48 hours.

Book a call

← All guides