CVE-2026-107299: msgpack5 Reserved Byte Can Cause Unbounded Vulnerability

MODERATE
Advisory Identifier: GHSA-26wq-p25c-j6fv
CVSS 5.9
CWE-228
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-107299
GHSA Identifier GHSA-26wq-p25c-j6fv
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-228: Improper Handling of Syntactically Invalid Structure
Affected Product msgpack5
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

msgpack5 fixed: 6.1.0
npm install msgpack5@6.1.0
Verify Direct and Transitive Dependencies

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

### Impact The 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. ### Patches The decoder now rejects `0xc1` as invalid input. Streaming decoders release buffered input and stop after unrecoverable decoding errors. ### Workarounds Reject `0xc1` before streaming input to msgpack5, and enforce stream byte and time limits.

CVE-2026-107299 Affected msgpack5 Versions

1 component(s)
Fixed Versions:
6.1.0
Product / Package Ecosystem Affected Versions Fixed Version
msgpack5
npm
< 6.1.0
6.1.0

References

Frequently Asked Questions

What is CVE-2026-107299?
CVE-2026-107299 is a security vulnerability in msgpack5 involving Reserved byte can cause unbounded stream buffering under CWE-228: Improper Handling of Syntactically Invalid Structure.
Which msgpack5 versions are affected?
Affected versions include releases prior to 6.1.0 across affected packages: msgpack5.
What version fixes CVE-2026-107299?
Upgrading to 6.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is msgpack5 affected?
Yes, msgpack5 is affected in releases prior to 6.1.0. Upgrade your dependency to 6.1.0 or later.
What is the CVSS score of CVE-2026-107299?
CVE-2026-107299 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-107299?
CVE-2026-107299 is classified under CWE-228: Improper Handling of Syntactically Invalid Structure (The product does not handle or incorrectly handles input that is not syntactically well-formed with respect to the associated specification.).
How can I check npm dependencies for CVE-2026-107299?
Run the dependency tree command: 'npm ls msgpack5'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}