CVE-2026-107299: msgpack5 Reserved Byte Can Cause Unbounded Vulnerability
MODERATECVE-2026-107299 is a MODERATE (CVSS 5.9) reserved byte can cause unbounded vulnerability (CWE-228: Improper Handling of Syntactically Invalid Structure) affecting msgpack5 libraries in the npm ecosystem. The issue involves reserved byte can cause unbounded stream buffering. Remediation is available by upgrading affected packages to version 6.1.0.
CVE-2026-107299 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-107299
To remediate this vulnerability, upgrade all affected msgpack5 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install msgpack5@6.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls msgpack5
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-107299, inspect your project dependencies using npm:
npm ls msgpack5
Analyze the terminal output to locate any version of msgpack5 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.0), your application is affected.
Note: The npm ls msgpack5 command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-228: Improper Handling of Syntactically Invalid Structure, where the product does not handle or incorrectly handles input that is not syntactically well-formed with respect to the associated specification. In msgpack5, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-107299 Affected msgpack5 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
msgpack5
|
npm |
< 6.1.0
|
6.1.0
|
References
Frequently Asked Questions
What is CVE-2026-107299?
Which msgpack5 versions are affected?
What version fixes CVE-2026-107299?
Is msgpack5 affected?
What is the CVSS score of CVE-2026-107299?
What CWE is associated with CVE-2026-107299?
How can I check npm dependencies for CVE-2026-107299?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-26wq-p25c-j6fv",
"modified" : "2026-10-08T17:40:01Z",
"published" : "2026-10-08T17:40:01Z",
"aliases" : [ "CVE-2026-107299" ],
"summary" : "msgpack5: Reserved byte can cause unbounded stream buffering",
"details" : "### Impact\n\nThe reserved MessagePack byte `0xc1` is incorrectly treated as incomplete input. When it appears at the start of a decoder stream, all subsequent data is retained while the decoder waits for bytes that can never make the value valid, allowing memory exhaustion.\n\n### Patches\n\nThe decoder now rejects `0xc1` as invalid input. Streaming decoders release buffered input and stop after unrecoverable decoding errors.\n\n### Workarounds\n\nReject `0xc1` before streaming input to msgpack5, and enforce stream byte and time limits.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "msgpack5"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mcollina/msgpack5/security/advisories/GHSA-26wq-p25c-j6fv"
}, {
"type" : "WEB",
"url" : "https://github.com/mcollina/msgpack5/commit/85da345bf1acc18ca441741e5cf4aa0ed0d69314"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mcollina/msgpack5"
}, {
"type" : "WEB",
"url" : "https://github.com/mcollina/msgpack5/releases/tag/v6.1.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-228" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-08T17:40:01Z",
"nvd_published_at" : null
}
}