CVE-2026-107298
msgpack5: Deeply nested input can exhaust the decoder stack
Description
Impact
The decoder has no nesting-depth limit for arrays and maps. An attacker who can provide MessagePack input can use deeply nested containers to exhaust the JavaScript call stack and interrupt the process or request handler.
Patches
The decoder now limits nesting depth to 100 by default and throws Maximum decode depth exceeded. Applications can configure the limit with the maxDepth option.
Workarounds
Reject deeply nested input before decoding, isolate decoding in a worker, or enforce a trusted schema with a bounded nesting depth.
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-24ch-f2g6-9hhh | github.com |
| Web | mcollina/msgpack5 commit 1e2b587 | github.com |
| Web | mcollina/msgpack5 release v6.1.0 | github.com |
