# GHSA-26WQ-P25C-J6FV: msgpack5: Reserved byte can cause unbounded stream buffering

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

## Tracked as

- [CVE-2026-107299](https://cve.now/CVE-2026-107299.md): msgpack5: Reserved byte can cause unbounded stream buffering

## Affected versions

- msgpack5 (npm): fixed in 6.1.0

## Description

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

## References

- https://github.com/mcollina/msgpack5/security/advisories/GHSA-26wq-p25c-j6fv
- https://github.com/mcollina/msgpack5/commit/85da345bf1acc18ca441741e5cf4aa0ed0d69314
- https://github.com/mcollina/msgpack5
- https://github.com/mcollina/msgpack5/releases/tag/v6.1.0

Page: https://cve.now/GHSA-26WQ-P25C-J6FV

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