# GHSA-QW35-55VC-RHGJ: msgpack5: Decoding negative int64 values mutates the input buffer

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

## Tracked as

- [CVE-2026-107296](https://cve.now/CVE-2026-107296.md): msgpack5: Decoding negative int64 values mutates the input buffer

## Affected versions

- msgpack5 (npm): fixed in 6.1.0

## Description

### Impact

Decoding a negative signed 64-bit integer modifies the corresponding bytes in the caller-provided input buffer. Applications that retain or reuse encoded input for integrity checks, logging, or subsequent processing may observe silently corrupted data.

Positive integers and other MessagePack value types are not affected.

### Patches

The decoder now computes signed 64-bit values without writing to the input buffer.

### Workarounds

Copy untrusted MessagePack input before decoding it, or do not retain or reuse input buffers after decoding.

## References

- https://github.com/mcollina/msgpack5/security/advisories/GHSA-qw35-55vc-rhgj
- https://github.com/mcollina/msgpack5/commit/82b70393a824e1088a45a377548d1d9ab82faf91
- https://github.com/mcollina/msgpack5
- https://github.com/mcollina/msgpack5/releases/tag/v6.1.0

Page: https://cve.now/GHSA-QW35-55VC-RHGJ

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