CVE-2026-123862

Denial of Service
Affects
Node.js
in
Node.js
No items found.
Versions
>=0.0.0 <22.23.5, >=23.0.0 <24.22.3, >=25.0.0 <26.13.1

Patch Available.

Exclamation circle icon
Patch Available

This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.

Overview

Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. It uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, and it is widely used for web applications and server-side development.

A denial of service (DoS) vulnerability (CVE-2026-123862) has been identified in the Node.js zlib streaming API, which allows a peer to crash a process by disconnecting while data is being compressed. When a zlib stream is destroyed while a params() call is still pending, Node.js throws an uncatchable ERR_INTERNAL_ASSERTION that bypasses the stream's error event and every callback, and the process exits.

Per OWASP: The Denial of Service (DoS) attack is focused on making a resource (site, application, server) unavailable for the purpose it was designed.

This issue affects multiple versions of Node.js.

Details

Module Info

Vulnerability Info

This Low-severity vulnerability is found in the node package in multiple versions of Node.js. The flaw is in the built-in zlib module (lib/zlib.js). Zlib.prototype.params() cannot change the compression level or strategy while a write is in progress, so it queues a Z_SYNC_FLUSH write and finishes its work in that write's callback, paramsAfterFlushCallback:

function paramsAfterFlushCallback(level, strategy, callback) {
  assert(this._handle, 'zlib binding closed');
  this._handle.params(level, strategy);
  if (!this.destroyed) {
    this._level = level;
    this._strategy = strategy;
    if (callback) callback();
  }
}

If the stream is destroyed before the queued flush runs, the native handle is closed and this._handle is cleared. Writable still invokes the pending write callback, passing a stream-destroyed error, but paramsAfterFlushCallback ignores that argument and asserts that the handle exists. The assertion fails and throws ERR_INTERNAL_ASSERTION ("zlib binding closed") from inside the stream internals. Because the exception is raised synchronously within the write callback machinery, it is not routed to the stream's error event, the params() callback, or the pipeline() callback, so no application handler can catch it and the process terminates.

pipeline() destroys every stream in the chain when a peer goes away. An application that calls deflate.params() on a compression stream piped to a network peer can therefore be crashed by a peer that disconnects while a params() call is pending. Applications that never call params() on a zlib stream are not affected.

Steps to Reproduce

  1. Save the following as repro.js:
    const zlib = require('zlib');
    
    const deflate = zlib.createDeflate();
    deflate.on('error', (err) => console.log('error event:', err.code));
    deflate.write('x');
    deflate.params(9, zlib.constants.Z_DEFAULT_STRATEGY, (err) => {
      console.log('params callback:', err && err.code);
    });
    deflate.destroy();
  2. Run it with an affected Node.js version: node repro.js.
  3. Observe that neither the error listener nor the params() callback runs. The process exits with an uncaught Error [ERR_INTERNAL_ASSERTION]: zlib binding closed thrown from paramsAfterFlushCallback.

Mitigation

Node.js release lines prior to v22 are End-of-Life and will not receive any upstream updates to address this issue. For more information see here.

The odd-numbered Node.js 23 and 25 release lines are also End-of-Life.

Users of the affected components should apply one of the following mitigations:

  • Upgrade to a supported Node.js release that carries the fix (v22.23.5, v24.22.3 or v26.13.1 or later).
  • Migrate affected applications away from the End-of-Life Node.js release lines.
  • Leverage a commercial support partner like HeroDevs for post-EOL security support.

Credits

Chris Rohlf in collaboration with Claude and Anthropic Research (finder)

Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
Low
ID
CVE-2026-123862
PROJECT Affected
Node.js
Versions Affected
>=0.0.0 <22.23.5, >=23.0.0 <24.22.3, >=25.0.0 <26.13.1
NES Versions Affected
Published date
November 12, 2026
≈ Fix date
November 19, 2026
Category
Denial of Service
Vex Document
Download VEXHow do I use it?
Sign up for the latest vulnerability alerts fixed in
NES for Node.js
Rss feed icon
Subscribe via RSS
or

By submitting the form I acknowledge receipt of our Privacy Policy.

Thanks for signing up for our Newsletter! We look forward to connecting with you.
Oops! Something went wrong while submitting the form.