# GHSA-5X5G-H9X8-2FH9: msgpack5: Many buffered values can exhaust the streaming decoder stack

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-10-08
- Modified: 2026-10-08

## Tracked as

- [CVE-2026-107300](https://cve.now/CVE-2026-107300.md): msgpack5: Many buffered values can exhaust the streaming decoder stack

## Affected versions

- msgpack5 (npm): fixed in 6.1.0

## Description

### Impact

The streaming decoder recursively invokes itself for every complete value remaining in a chunk. A single chunk containing many small valid MessagePack values can exhaust the JavaScript call stack and interrupt the process or stream.

### Patches

The streaming decoder now drains concatenated values iteratively with constant call-stack depth.

### Workarounds

Limit the number of MessagePack values accepted in one chunk, or split large batches before passing them to the decoder stream.

## References

- https://github.com/mcollina/msgpack5/security/advisories/GHSA-5x5g-h9x8-2fh9
- https://github.com/mcollina/msgpack5/commit/77fbef144d05def5d16fc22c37caa64c0a7efeba
- https://github.com/mcollina/msgpack5
- https://github.com/mcollina/msgpack5/releases/tag/v6.1.0

Page: https://cve.now/GHSA-5X5G-H9X8-2FH9

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
