Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

High · 7.5 Node.js & npm GHSA-gcx5-hxj7-gpqq CVE-2026-107297 GHSA-8f34-f56x-9xph CVE-2026-107302

msgpack5 Before 6.1.0: Six Denial-of-Service and Prototype-Pollution Flaws Fixed in One Release

Six vulnerabilities in msgpack5 versions before 6.1.0 allow remote, unauthenticated attackers to cause denial of service through CPU exhaustion, memory exhaustion, or call-stack crashes, and in one case to tamper with an object's prototype. All six are fixed in msgpack5 6.1.0.

By PatchBriefing ·

Produced automatically from official sources with the help of AI. How we work →

AI summary

msgpack5, a MessagePack v5 implementation for Node.js and browsers, is affected by six distinct vulnerabilities disclosed together on October 8, 2026. All six stem from how the library's decoder handles crafted or malformed input, and all are resolved in a single fixed release, version 6.1.0. The issues range from denial-of-service conditions triggered by CPU exhaustion, memory exhaustion, or JavaScript call-stack overflow, to a prototype-pollution weakness that depends on how an application configures the library. None of the issues are reported as actively exploited, and no public exploit code has been identified for any of them.

What happened

Six vulnerabilities were disclosed for msgpack5, all affecting versions prior to 6.1.0 and all fixed in that release: - CVE-2026-107297 (GHSA-gcx5-hxj7-gpqq): The streaming decoder reparses an incomplete array or map from the beginning each time a new data chunk arrives. By splitting a single valid MessagePack container across many small chunks, a remote peer can force repeated decoding of already-completed elements, producing quadratic CPU usage that blocks the event loop. - CVE-2026-107298 (GHSA-24ch-f2g6-9hhh): The array and map decoding paths impose no limit on nesting depth. Deeply nested containers can exhaust the JavaScript call stack and interrupt a process, worker, or request handler. - CVE-2026-107299 (GHSA-26wq-p25c-j6fv): The streaming decoder treats the reserved MessagePack byte 0xc1 as incomplete input rather than invalid input. A stream beginning with this byte causes the decoder to keep buffering subsequent data indefinitely while waiting for bytes that can never complete a valid value, allowing memory exhaustion. - CVE-2026-107300 (GHSA-5x5g-h9x8-2fh9): The streaming decoder recursively calls itself for each complete value remaining in a chunk. A single chunk containing many small valid values causes recursion proportional to the number of values, exhausting the call stack and interrupting the process or stream. - CVE-2026-107301 (GHSA-8hq7-ggx2-cc6m): Constructing msgpack5 with an empty or partial options object disables the default protoAction: 'error' protection. A decoded map containing a __proto__ key can then replace the decoded object's prototype, potentially altering inherited properties or downstream application behavior. Object.prototype itself is not modified globally. - CVE-2026-107302 (GHSA-8f34-f56x-9xph): The decoder reads the four-byte length field of a map32 value before confirming that the full five-byte header has actually arrived. A truncated map32 header triggers a checked out-of-bounds buffer read that throws a RangeError instead of the expected IncompleteBufferError. Applications that rely on IncompleteBufferError to wait for more bytes can have a request, stream, or worker unexpectedly terminated. The advisory notes that no adjacent-memory disclosure occurs, because the underlying buffer implementation enforces bounds checking.

Technical cause

Five of the six issues (CVE-2026-107297, CVE-2026-107298, CVE-2026-107299, CVE-2026-107300, CVE-2026-107302) are rooted in how msgpack5's decoder processes partial or malformed byte streams: it either repeats work unnecessarily, recurses without bounds, misclassifies invalid bytes as incomplete, or reads length fields before validating that enough data is present. The sixth issue, CVE-2026-107301, is a configuration-dependent weakness in which an incompletely specified options object silently disables the library's built-in protection against prototype pollution via a __proto__ key in decoded data.

Why it matters

Each of these issues can be triggered remotely, without authentication, and without any user interaction, by any peer able to send MessagePack data to an application using the library's decoder. Five of the six vulnerabilities result in some form of denial of service: blocking the event loop, exhausting memory, or crashing a process or worker via call-stack exhaustion. The remaining issue can alter an object's prototype in applications that construct msgpack5 with an incomplete options object, which may change inherited properties or application behavior, though it does not globally modify Object.prototype.

Who is affected

Any application or service using the msgpack5 npm package prior to version 6.1.0 to decode MessagePack data from untrusted or external sources is potentially affected, particularly services that parse MessagePack payloads received over the network from remote peers.

Affected versions

All six vulnerabilities affect msgpack5 versions starting from version 0 up to, but not including, version 6.1.0. All are fixed in version 6.1.0.

Fixes and mitigation

A single update, msgpack5 version 6.1.0, resolves all six vulnerabilities described in this briefing.

Recommended action

Update msgpack5 to version 6.1.0 in all applications that depend on it. If immediate updating is not possible, review whether msgpack5 is used to decode data from untrusted or remote sources, and consider applying resource limits (such as input size caps, nesting depth limits, or timeouts) at the application layer as a temporary compensating control. For CVE-2026-107301 specifically, ensure msgpack5 is constructed with a complete options object rather than an empty or partial one, so that the default protoAction: 'error' protection remains active until the update is applied.

PatchBriefing score

7.5 / 10 · High

Official CVSS: 7.5

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS 0.0061 (43 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

msgpack5 ≥ 0 < 6.1.0
vulnerable
≥ 6.1.0
patched
msgpack5 ≥ 4.1.0 < 6.1.0
vulnerable
msgpack5 >= 4.1.0, < 6.1.0
vulnerable
≥ 6.1.0
patched
msgpack5 ≥ 0 < 6.1.0
vulnerable
≥ 6.1.0
patched
msgpack5 ≥ 0 < 6.1.0
vulnerable
≥ 6.1.0
patched
msgpack5 ≥ 0 < 6.1.0
vulnerable
≥ 6.1.0
patched
msgpack5 ≥ 0 < 6.1.0
vulnerable
≥ 6.1.0
patched

Reported fixes

A single update, msgpack5 version 6.1.0, resolves all six vulnerabilities described in this briefing.

How this was built

12 source records were collected, matched and used to prepare the report above.

  • OSV.dev database
  • NVD (NIST) database
  • OSV.dev database
  • NVD (NIST) database
  • OSV.dev database
  • NVD (NIST) database
Unified report
msgpack5 Before 6.1.0: Six Denial-of-Service and Prototype-Pollution Flaws Fixed in One Release
1 article · 12 sources cited
Revision history
  1. Published
  2. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email