CVE-2026-107300: msgpack5 Package Stack Exhaustion Vulnerability

msgpack5 Updated 09 Oct 2026

Summary

08/10/2026
Yes i
High
7.5

CVE-2026-107300: msgpack5: Many buffered values can exhaust the streaming decoder stack. Affects msgpack5 versions < 6.1.0. Fixed in 6.1.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

msgpack5 is a popular JavaScript library used for encoding and decoding MessagePack data, a binary format that is efficient for data interchange. The library is widely utilized in applications that require fast serialization and deserialization of data. However, it is susceptible to a vulnerability that can lead to stack exhaustion when processing a large number of small MessagePack values in a single chunk.

Vulnerability Detail

The vulnerability arises from the streaming decoder's recursive invocation for each complete value remaining in a chunk. When a single chunk contains many small valid MessagePack values, it can exhaust the JavaScript call stack, potentially interrupting the process or stream. This can lead to application crashes or degraded performance, making it a significant concern for developers relying on msgpack5 for data processing.

How To Fix

Latest published version: 6.1.0 as of 22 Oct 2026

npm install msgpack5@6.1.0

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, limit the number of MessagePack values accepted in one chunk or split large batches before passing them to the decoder stream. For example, if you are processing an array of MessagePack values, you can split it into smaller arrays before decoding:

Conclusion

The msgpack5 package has a significant vulnerability (CVE-2026-107300) that can lead to stack exhaustion when processing many small MessagePack values. It is crucial to update to version 6.1.0 or later to mitigate this risk. Additionally, implementing workarounds can help manage the issue until an update is applied.

See every vulnerability recorded for msgpack5 →

Share this vulnerability

FAQ

CVE-2026-107300 is a vulnerability in the msgpack5 package that can lead to stack exhaustion when processing many small MessagePack values in a single chunk.

This vulnerability can cause your application to crash or degrade performance due to stack exhaustion, especially when handling large amounts of data.

All versions of msgpack5 prior to 6.1.0 are affected by this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for msgpack5.

How To Fix

Latest published version: 6.1.0 as of 22 Oct 2026

npm install msgpack5@6.1.0

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback