All vulnerabilities

npm

CVE-2026-97705

Moleculer: Unauthenticated Denial of Service via negative length field in the TCP transporter packet parser

Severity
High 7.5
Published
9 Nov 2026
Last changed
9 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.14.36, 0.15.2
Exploit chance
0.4% in the next 30 daysHigher than 29% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Infinite loop (CWE-835)
Attack
Over the network · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Also known as
GHSA-h89v-g948-47vp
Sources
OSV.dev and GitHub

Description

The TCP transporter's packet parser (src/transporters/tcp/parser.js) reads the packet length field with Buffer.prototype.readInt32BE, a signed read. A crafted packet whose length field has the sign bit set yields a negative length. The parser then advances past the parsed message with packet = packet.slice(length), but Buffer.prototype.slice clamps an out-of-range negative start index to 0, so the buffer is returned unchanged. The while (packet.length > 0) loop condition therefore never becomes false, producing an infinite synchronous loop that blocks the Node.js event loop indefinitely.

Any Moleculer node using the TCP transporter can be rendered completely unresponsive by an unauthenticated remote peer sending a single ~10-byte crafted TCP packet, before any protocol handshake or authentication takes place.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
moleculernpm · osv:npm:moleculer
  • Every version before 0.14.36
  • From 0.15.0-beta1 before 0.15.2

About moleculer

Weekly downloads (npm)
77,526npm, 24 Nov 2026

This is the only vulnerability in moleculer in our list.

References