Skip to main content

msgpack5 CVE-2026-107298

| EUVDEUVD-2026-95109 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-10-08 security-advisories@github.com GHSA-24ch-f2g6-9hhh
5.3
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit deeply nested MessagePack payload
  2. Exploit
    Decoder recurses without depth limit
  3. Execution
    Exhaust JavaScript call stack
  4. Impact
    Crash process or request handler

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

The application must decode attacker-controllable MessagePack input using msgpack5 before version 6.1.0 without first bounding nesting depth. No authentication, user interaction, or non-default configuration is required - versions prior to 6.1.0 had no depth limit at all. Exploitation is LIMITED to availability impact (process/worker/request-handler crash) with no data or integrity consequences, and is mitigated where the application already rejects deeply nested input, isolates decoding in a worker, or enforces a bounded trusted schema. After 6.1.0 the default maxDepth of 100 blocks the attack unless an operator explicitly raises the limit.

Impact

This is a moderate-severity denial-of-service issue, not a high-priority emergency. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) is internally consistent with the description: a remote, unauthenticated attacker (PR:N) who can supply MessagePack input triggers unbounded recursion in the array/map decoder, exhausting the JavaScript call stack. All impact is confined to availability (A:L, with C:N/I:N) - there is no data exposure or code execution, so the input 'Information Disclosure' tag contradicts the actual impact and appears mislabeled (see data_quality_flags). No EPSS score was supplied, the CVE is not in CISA KEV, and no public exploit code is referenced, so there is no evidence of active or widespread exploitation. The A:L (rather than A:H) rating reflects that the attack interrupts a single process/worker/request handler rather than causing sustained infrastructure-wide outage; in a Node.js service that does not isolate decoding, a crash can still take down a request handler or worker. Overall this is a real but bounded availability risk that warrants routine patching rather than emergency response.

Exploit ScenarioDerived

An attacker sends a small, crafted MessagePack payload containing hundreds of deeply nested arrays or maps to an endpoint of a Node.js service that decodes untrusted MessagePack using msgpack5 < 6.1.0. The recursive decoder descends one frame per nesting level and exhausts the call stack, throwing an uncatchable RangeError that crashes the process, worker, or request handler. No public proof-of-concept is referenced, but the payload is trivial to construct from the public advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 08, 2026

Stack exhaustion in msgpack5, the MessagePack v5 implementation for Node.js and the browser, allows remote attackers to crash a process, worker, or request handler by feeding deeply nested arrays or maps to the decoder; versions prior to 6.1.0 impose no nesting-depth limit, so unbounded recursion in the decode path overflows the JavaScript call stack. No authentication, user interaction, or non-default configuration is required (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L), but the impact is limited to availability - no confidentiality or integrity loss. There is no public exploit identified at time of analysis and no evidence of active exploitation, and the vendor has released a fix in 6.1.0 that caps decode depth at 100 by default.

RemediationAI

Upgrade msgpack5 to 6.1.0 or later - the vendor-released patch that introduces a default maxDepth of 100 and throws 'Maximum decode depth exceeded' on excessively nested input (see https://github.com/mcollina/msgpack5/releases/tag/v6.1.0 and the advisory https://github.com/mcollina/msgpack5/security/advisories/GHSA-24ch-f2g6-9hhh). Where upgrading immediately is not possible, pre-validate or reject deeply nested input before handing it to the decoder, run decoding inside an isolated worker so a stack overflow kills only that worker rather than the main process, or enforce a trusted schema with a bounded nesting depth; each of these adds parsing or architectural overhead and none fully removes the DoS surface. Operators on 6.1.0 should leave maxDepth at its default of 100 and avoid raising it, since a higher limit re-exposes the recursive path to proportionally deeper payloads; lowering it further tightens protection at the cost of rejecting legitimately nested messages, so tune it against the deepest structure your protocol requires.

Affected VersionsENISA

msgpack5 < 6.1.0

Affected Packages

npm msgpack5 fix: 6.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MessagePack is a compact binary serialization format in which arrays and maps are nested containers, and msgpack5 implements its v5 spec for Node.js and browsers. The decoder recurses through nested containers via tryDecode calling decodeArray and decodeMap, with each level adding a stack frame. This is CWE-674 (Uncontrolled Recursion): the pre-6.1.0 decoder passed no depth counter through these functions, so an attacker crafting a payload of many nested array/map headers (each only a few bytes) forces deeply recursive decoding until the JavaScript engine's call stack is exhausted and a RangeError propagates, interrupting the process or the request handler. The fix in release 6.1.0 adds a maxDepth option (default 100) validated as a non-negative integer, threads a depth argument through tryDecode, decodeArray, decodeMap and decodeItems, increments it on each container entry, and throws 'Maximum decode depth exceeded' when the limit is surpassed. The change was applied to lib/decoder.js and the built artifacts dist/msgpack5.js and dist/msgpack5.min.js.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

Remote unauthenticated attacker supplies input with no interaction (AV:N/AC:L/PR:N/UI:N); impact is availability-only crash of a single process (A:L), no C/I impact, scope unchanged.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

1
Patch available
Oct 08, 2026 - 18:03 EUVD

DescriptionCVE.org

msgpack5 is a msgpack v5 implementation for node.js and the browser. Prior to 6.1.0, the array and map decoding paths have no nesting-depth limit, allowing an attacker who can provide MessagePack input to submit deeply nested containers that exhaust the JavaScript call stack and interrupt a process, worker, or request handler. This issue is fixed in version 6.1.0.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 294 npm packages depend on msgpack5 (61 direct, 235 indirect)

Ecosystem-wide dependent count for version 6.1.0.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Medium
popular npm MessagePack library, common but not universally deployed
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2013-4660 MEDIUM POC
6.8 Jun 28

The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy