YOUR DIGITAL HUB
← Back to blog

Node.js, React, Next.js, Angular CVEs in 2026: flaws and fixes

14 min read

Cover visual — JavaScript CVEs 2026: Node.js, React, Next.js, Angular

What this article covers

Between October 1 and November 11, 2026, Node.js shipped two rounds of security releases, React fixed a remote code execution flaw in Server Components, Next.js published two security updates and Angular issued several advisories rated High. If you run a team with a JavaScript application in production, the question is simple: are we affected, and which version do we need?

This article walks through ten CVEs, most recent first. Each entry was checked on November 22, 2026 against the official CVE record (cve.org) and the vendor advisory. CVSS scores are quoted only when one of those two sources states them, and we flag the cases where they disagree. This is a patching guide: it contains no exploit code and no attack walkthrough.

An npm supply-chain incident from August, which has no CVE number, is covered separately near the end.

Summary table

CVE Component Fixed versions
CVE-2026-123864 Node.js (HTTPS) 22.23.5, 24.22.3, 26.13.1
CVE-2026-123863 Node.js (HTTP/2) 24.22.3, 26.13.1
CVE-2026-125120 Mongoose 6.13.11, 7.8.12, 8.24.3, 9.9.2
CVE-2026-119192 node-forge 1.4.1
CVE-2026-119790 Next.js (Cache Components) 16.4.5
CVE-2026-111497 Node.js (Brotli decoder) 22.23.4, 24.22.1, 26.12.1
CVE-2026-111753 Angular (@angular/common) 20.3.34, 21.0.3
CVE-2026-126187 React Server Components 19.0.9, 19.1.10, 19.2.9, 19.3.1
CVE-2026-96889 Next.js (image optimization) 15.5.28, 16.4.1
CVE-2026-111751 Angular (@angular/router, SSR) 21.2.25, 22.2.1

If you only have five minutes: move Node.js to the latest release of your line (22.23.5, 24.22.3 or 26.13.1), Next.js to 16.4.5 or 15.5.29, and run npm audit on everything else.

CVE-2026-123864 — Node.js: memory disclosure across HTTPS connections

  • Component: Node.js, node:https server.
  • Affected versions: the 22.x, 24.x and 26.x lines before the fixed releases.
  • Fixed versions: 22.23.5, 24.22.3, 26.13.1 (released November 11, 2026).
  • Severity: High, CVSS 3.0 score of 8.1 in the CVE record.

The risk. An unauthenticated client can read memory that belongs to other connections in the same process: other users' requests, and potentially TLS private keys.

Are you affected? The flaw is triggered when an HTTPS handler calls res.flushHeaders() before the request body has ended, then calls res.end() with a non-empty chunk. Reading the leaked memory also requires a route that echoes or stores a request body. Cleartext node:http is not affected: if a reverse proxy terminates TLS and Node.js only receives plain HTTP, this CVE does not apply to your process.

node --version
grep -rn "flushHeaders" src/

Fix. Upgrade to 22.23.5, 24.22.3 or 26.13.1. The Node.js advisory documents no workaround.

Sources: Node.js advisory of November 11, 2026, CVE-2026-123864 on cve.org.

CVE-2026-123863 — Node.js: remote crash of an HTTP/2 server

  • Component: Node.js, node:http2 module.
  • Affected versions: 24.x from 24.22.0 and 26.x from 26.9.0, according to the CVE record. The 22.x line is not listed for this CVE.
  • Fixed versions: 24.22.3, 26.13.1.
  • Severity: High, CVSS 3.0 score of 8.2 in the CVE record.

The risk. An unauthenticated client can take down the server process, over TLS or cleartext. It is a variant of CVE-2024-27983 that the original fix did not cover.

Are you affected? Yes if you expose a Node.js http2 server with default settings and a handler responds before the request body has ended, which the record describes as the typical case. If HTTP/2 is terminated by your proxy (Nginx, Envoy, a CDN) and Node.js only speaks HTTP/1.1, you are not exposed to this CVE.

Fix. Upgrade to 24.22.3 or 26.13.1. The same release fixes around fifteen other CVEs, several of them in HTTP/2 and TLS, so the upgrade is worth doing even if you do not use http2.

Sources: Node.js advisory of November 11, 2026, CVE-2026-123863 on cve.org.

CVE-2026-125120 — Mongoose: sanitizeFilter skipped by countDocuments()

  • Component: mongoose (npm).
  • Affected versions: before 6.13.11, 7.x before 7.8.12, 8.x before 8.24.3, 9.x before 9.9.2.
  • Fixed versions: 6.13.11, 7.8.12, 8.24.3, 9.9.2.
  • Severity: Critical, CVSS 3.1 score of 9.8 in the GitHub advisory and the CVE record.

The risk. sanitizeFilter is Mongoose's defence against query operator injection. It was not applied to countDocuments(): an attacker-controlled filter can be interpreted as an operator, skew the count and, as a consequence, bypass a business rule or an access check that relies on that count.

Are you affected? Only if you rely on sanitizeFilter and user-supplied values reach the filter of a countDocuments() call. The 9.8 score describes the worst case, not every application.

npm ls mongoose
grep -rn "countDocuments" src/

Fix. Move to the fixed release of your major line. If the upgrade has to wait, the maintainer's advisory documents a workaround: a pre('countDocuments') middleware that applies mongoose.sanitizeFilter() to the query filter.

Sources: advisory GHSA-pcrw-h46h-c93h, CVE-2026-125120 on cve.org.

CVE-2026-119192 — node-forge: forgeable RSA signatures

  • Component: node-forge (npm), very often present as a transitive dependency.
  • Affected versions: 1.4.0 and earlier.
  • Fixed version: 1.4.1.
  • Severity: High, CVSS 3.1 score of 7.5 in the GitHub advisory and the CVE record.

The risk. RSA PKCS#1 v1.5 signature verification accepted non-canonical encodings. With a low-exponent public key (e=3), an attacker can produce a valid signature without the private key. The same code path is used for X.509 certificate and PKCS#7 signature verification.

Are you affected? Check the installed version first, then whether your code or one of your dependencies verifies signatures with node-forge.

npm ls node-forge

Fix. Upgrade to 1.4.1. For a transitive dependency, update the parent package or force the version with the overrides field in package.json. Workaround documented by the maintainer: do not verify signatures with RSA keys that use a low public exponent (e=3).

Sources: advisory GHSA-6qrw-m8cv-hcxf, CVE-2026-119192 on cve.org.

CVE-2026-119790 — Next.js: cache shared across tenants

  • Component: next (npm), Cache Components.
  • Affected versions: 16.3.0 to 16.4.4.
  • Fixed version: 16.4.5 (released November 3, 2026).
  • Severity: the sources disagree. The Next.js post rates the flaw High; the CVE record gives a CVSS 4.0 score of 6.3 (Medium).

The risk. When the same use cache function is called both directly and through unstable_cache(), and it reads a root parameter (a tenant identifier, a locale), data cached for one tenant can be served to requests for another until the entry is revalidated or evicted.

Are you affected? Three conditions must hold: Cache Components is enabled, a use cache function reads a root parameter, and that same function is also called through unstable_cache(). Exploitation further requires a concurrent request during the first cache fill after a cold start.

npm ls next
grep -rn "unstable_cache" app/ src/

Fix. Upgrade to 16.4.5. According to the advisory, not nesting use cache inside unstable_cache() is enough to avoid the issue. The November 3 release fixes six other flaws (HttpOnly cookie exposure on Edge routes, a bypass of SVG rejection, cache poisoning in self-hosted setups): target 16.4.5, or 15.5.29 if you are on the 15 line.

Sources: Next.js post of November 3, 2026, advisory GHSA-mfr8-8qww-v76h, CVE-2026-119790 on cve.org.

CVE-2026-111497 — Node.js: out-of-bounds write in the Brotli decoder

  • Component: Google's Brotli library (1.0.3 to 1.2.0), bundled in Node.js and exposed through node:zlib.
  • Affected versions: Node.js 22.x, 24.x and 26.x before the fixed releases.
  • Fixed versions: 22.23.4, 24.22.1, 26.12.1 (released October 21, 2026).
  • Severity: High in the Node.js advisory; the CVE record, issued by Google for the library, gives a CVSS 4.0 score of 9.2 (Critical).

The risk. An application that decompresses an attacker-supplied Brotli stream can have its memory corrupted: a crash, memory disclosure, or remote code execution.

Are you affected? Look for the places where you decompress Brotli data that comes from outside: request bodies with Content-Encoding: br, uploaded files, responses from third-party services.

node --version
grep -rnE "createBrotliDecompress|brotliDecompress" src/

Remember the libraries that decompress on your behalf (HTTP clients, body-parsing middleware).

Fix. The November 11 releases (22.23.5, 24.22.3, 26.13.1) include this fix, so a single upgrade covers both rounds. The Node.js advisory documents no workaround.

Sources: Node.js advisory of October 21, 2026, CVE-2026-111497 on cve.org.

CVE-2026-111753 — Angular: HttpClient XSRF token leak

  • Component: @angular/common, the HttpClient XSRF interceptor.
  • Affected versions: 19.2.25 and earlier, 20.0.0 to 20.3.33, 21.0.0 to 21.0.2.
  • Fixed versions: 20.3.34 and 21.0.3. The 22.x line is not affected. The 19.x line is out of support and will not be patched.
  • Severity: High in the Angular advisory; the CVE record gives a CVSS 4.0 score of 5.9 (Medium).

The risk. Angular and the browser do not parse certain URLs the same way. A crafted URL can be mistaken for a same-origin URL: the X-XSRF-TOKEN header is attached, yet the request goes to a third-party domain. The attacker obtains the token and can then forge requests on the victim's behalf. It is an incomplete fix for CVE-2025-66035.

Are you affected? Two conditions: XSRF protection is enabled (the HttpClient default), and an attacker can influence the URL of a mutating request (POST, PUT, PATCH, DELETE), for example through a redirect parameter or a URL stored in the database.

npm ls @angular/common

Fix. Upgrade to 20.3.34, 21.0.3 or later. On the 19 line, you have to migrate. Workaround documented by Angular: normalize every dynamic URL with new URL(url, window.location.origin) and check that its origin is the application's own before using it in a mutating request. This is the kind of version upgrade we handle as part of our Angular expertise.

Sources: advisory GHSA-jfgx-762w-99vr, CVE-2026-111753 on cve.org.

CVE-2026-126187 — React Server Components: remote code execution

  • Component: react-server-dom-webpack, react-server-dom-parcel, react-server-dom-turbopack.
  • Affected versions: 19.0.0 to 19.0.8, 19.1.0 to 19.1.9, 19.2.0 to 19.2.8, 19.3.0.
  • Fixed versions: 19.0.9, 19.1.10, 19.2.9, 19.3.1. On the Next.js side, the related advisory (GHSA-673q-mjm6-r5xr) is fixed in 16.4.1.
  • Severity: Critical, CVSS 4.0 score of 9.5 in the GitHub advisory and the CVE record.

The risk. A crafted, unauthenticated request can lead to code execution on the server. The advisory states that only rare cases are affected: responses that carry multiple typed arrays together with an attacker-controlled value. In Next.js, the scenario described is a use cache function returning multiple typed arrays, with App Router and Cache Components.

Are you affected? No if your React code does not run on a server, or if you use neither a framework nor a bundler that supports Server Components (a classic SPA is not affected). Otherwise, check the installed versions:

npm ls react-server-dom-webpack react-server-dom-parcel react-server-dom-turbopack
npm ls next

Fix. Upgrade. Next.js states there is no known workaround and recommends upgrading immediately even if your code has no such function. The fix shipped on October 14, 2026; the CVE record was only published on November 10, so some scanners flagged it late. The first alert of this kind, CVE-2025-55182 in December 2025, hit the same component: an application left untouched since then carries both. We cover this as part of our React expertise.

Sources: advisory GHSA-xqc2-xf4c-x3h3, Next.js post of October 14, 2026, CVE-2026-126187 on cve.org.

CVE-2026-96889 — Next.js: code execution through image optimization

  • Component: next (npm), Image Optimization API. The flaw sits upstream in librsvg, which Next.js uses through sharp.
  • Affected versions: 10.0.0 to 15.5.27, and 16.0.0 to 16.4.0.
  • Fixed versions: 15.5.28 and 16.4.1 (released October 14, 2026).
  • Severity: Critical, CVSS 4.0 score of 9.5 in the Next.js advisory. The CVE record, issued by Red Hat for librsvg alone, gives a CVSS 3.1 score of 7.8.

The risk. A memory-handling flaw in SVG processing can lead to unauthenticated remote code execution when Next.js runs on glibc-based Linux (Debian, Ubuntu, most Docker images other than Alpine).

Are you affected? Check the Next.js version, the sharp version and the base image of your containers.

npm ls next sharp

Fix. Upgrade to at least 15.5.28 or 16.4.1, preferably 15.5.29 or 16.4.5, which also include the November release. Workaround documented by Vercel: make sure the sharp version used by Next.js is 0.35.5 or later.

Sources: Next.js post of October 14, 2026, advisory GHSA-2464-fhr4-w9xw, CVE-2026-96889 on cve.org.

CVE-2026-111751 — Angular SSR: denial of service through RouterLink

  • Component: @angular/router, server-side rendering on Node.js.
  • Affected versions: 21.2.0 to 21.2.24, 22.0.0 to 22.2.0. Versions before 21.2.0, including the 20.x line, are not affected.
  • Fixed versions: 21.2.25 and 22.2.1.
  • Severity: High, CVSS 4.0 score of 8.2 in the Angular advisory and the CVE record.

The risk. With queryParamsHandling set to merge or preserve, every link rendered on the server keeps a copy of the request's query parameters. Concurrent requests with very long query strings can exhaust the SSR worker's memory and crash it.

Are you affected? You need SSR on Node.js, RouterLink directives using merge or preserve (per link or through defaultQueryParamsHandling), and a proxy that forwards long query strings. An SPA without SSR is not affected.

npm ls @angular/router
grep -rnE "queryParamsHandling|defaultQueryParamsHandling" src/

Fix. Upgrade to 21.2.25 or 22.2.1. Workarounds documented by Angular: avoid merge and preserve on server-rendered links, and cap query string length at the proxy or WAF (the advisory suggests 2,048 bytes). Raising --max-old-space-size moves the threshold without removing the risk.

Sources: advisory GHSA-57xq-rjx2-v5xh, CVE-2026-111751 on cve.org.

npm supply chain: keyv, flat-cache, file-entry-cache

Not every alert comes with a CVE number. On August 4, 2026, the GitHub Advisory Database flagged as malware three versions of very widely used packages, found among other places in lint and build tooling:

Package Malicious version Advisory
keyv 6.0.0 GHSA-3p9h-f68w-m6fx
flat-cache 6.1.24 GHSA-8jxr-wprf-45g8
file-entry-cache 11.1.6 GHSA-qp89-2g43-jg8j

The advisory leaves no room for interpretation: any machine on which one of these versions was installed or run must be considered fully compromised, and every secret stored on it must be rotated from a different machine. Uninstalling the package is not enough.

To check, look for these exact versions in your lockfiles, including those on branches and developer workstations:

npm ls keyv flat-cache file-entry-cache
grep -nE '"(keyv|flat-cache|file-entry-cache)"' -A 2 package-lock.json

Think about CI runners and images built in early August too: a clean lockfile today says nothing about what was installed that day.

Staying patched without spending your weeks on it

Four habits cover most of the ground.

1. Audit on every build. npm audit compares your dependency tree with the GitHub Advisory Database. In CI, fail the build above a threshold you actually enforce.

npm audit --omit=dev --audit-level=high

2. Lock and verify provenance. Commit the lockfile and install with npm ci, which refuses any drift from it. npm audit signatures verifies registry signatures and provenance attestations for the installed packages.

npm ci
npm audit signatures

3. Stay on a supported Node.js line. The October and November fixes were released only for the 22.x, 24.x and 26.x lines. The Node.js advisory points out that end-of-life versions are always affected and receive nothing. Check the Node.js release schedule and plan the migration before the end-of-support date, not after.

4. Follow advisories at the source. Scanners can lag by several weeks, as the October React CVE showed. Four pages are enough for this stack:

A tool such as Dependabot or Renovate then turns those advisories into pull requests. Someone still has to review and merge them.

Conclusion

None of these ten CVEs calls for a rewrite: in almost every case the fix is a minor version bump. What costs money is accumulated delay. An application still on Angular 19 or on an end-of-life Node.js line has no patch to apply and must migrate first. The right habit is therefore less about reacting to each alert than about keeping the stack current enough to patch within a day. The same principles apply on the PHP side, as we explain in our article on the OWASP Top 10 with Symfony.

For an audit of your JavaScript dependencies, a prioritized upgrade plan or an application security review, write to contact@your-digital-hub.com or discover our Cybersecurity expertise. You can also request a security audit through our contact page.

Let's talk about your project. Send us the essentials.

Tell us the context, whether it is a new build, a takeover or a migration, the technologies in place and your target date.