CVE-2026-107299: msgpack5 Unbounded Stream Buffering Due to Reserved Byte Handling

msgpack5 Updated 09 Oct 2026

Summary

08/10/2026
Yes i
Moderate
5.9

CVE-2026-107299: msgpack5: Reserved byte can cause unbounded stream buffering. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 has a vulnerability that arises from improper handling of a reserved byte, which can lead to significant memory issues.

Vulnerability Detail

The vulnerability stems from the incorrect treatment of the reserved MessagePack byte '0xc1'. When this byte appears at the start of a decoder stream, the decoder mistakenly considers the input incomplete. This causes the decoder to retain all subsequent data while waiting for additional bytes that will never arrive, leading to unbounded memory consumption and potential memory exhaustion. This issue can affect applications using msgpack5, especially those that process large streams of data.

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 workaround, you can implement a check to reject the byte '0xc1' before passing any input to msgpack5. This can be done with the following code snippet:

const input = ...; // your input data
if (input.startsWith(Buffer.from([0xc1]))) {
    throw new Error('Invalid input: reserved byte 0xc1 detected.');
}
// Proceed with msgpack5 decoding.

Conclusion

The CVE-2026-107299 vulnerability in msgpack5 poses a risk of memory exhaustion due to improper handling of a reserved byte. It is crucial for developers using this library to update to version 6.1.0 or later to mitigate this risk. Implementing the provided workaround can also help in the interim.

See every vulnerability recorded for msgpack5 →

Share this vulnerability

FAQ

The impact includes potential memory exhaustion in applications using msgpack5, which can lead to crashes or degraded performance.

You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.

Versions of msgpack5 prior to 6.1.0 are affected by this vulnerability.

Yes, the patch is available in version 6.1.0 of msgpack5. Updating to this version will resolve the issue.

If an immediate update is not possible, implement the workaround to reject the reserved byte '0xc1' before processing input with msgpack5.

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