# GHSA-8HQ7-GGX2-CC6M: msgpack5: Partial options disable prototype protection

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

## Tracked as

- [CVE-2026-107301](https://cve.now/CVE-2026-107301.md): msgpack5: Partial options disable prototype protection

## Affected versions

- msgpack5 (npm): fixed in 6.1.0

## Description

### Impact

Passing an empty or partial options object disables the default `protoAction: 'error'` protection. A map containing a `__proto__` key can then replace the prototype of the decoded object, potentially changing inherited properties or causing unexpected behavior in downstream code.

Only the decoded object's prototype is affected; this does not modify `Object.prototype` globally.

### Patches

Options are now merged with secure defaults without modifying the caller's object. Unsupported `protoAction` values are rejected.

### Workarounds

Explicitly set `protoAction: 'error'` whenever constructing a msgpack5 instance, and validate decoded values before use.

## References

- https://github.com/mcollina/msgpack5/security/advisories/GHSA-8hq7-ggx2-cc6m
- https://github.com/mcollina/msgpack5/commit/20e82600ac9462e679c8a45e5723315f21e2c774
- https://github.com/mcollina/msgpack5
- https://github.com/mcollina/msgpack5/releases/tag/v6.1.0

Page: https://cve.now/GHSA-8HQ7-GGX2-CC6M

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