CVE-2026-107301
msgpack5: Partial options disable prototype protection
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.webjars.npm » msgpack5via npm msgpack5 | < 6.1.0 | 6.1.0 |
Blast radius
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Package | mcollina/msgpack5 | github.com |
| Web | mcollina/msgpack5 advisory GHSA-8hq7-ggx2-cc6m | github.com |
| Web | mcollina/msgpack5 commit 20e8260 | github.com |
| Web | mcollina/msgpack5 release v6.1.0 | github.com |
