CVE-2026-107297
msgpack5: Quadratic parsing in the streaming decoder
Description
Impact
The streaming decoder reparses an incomplete container from the beginning whenever another chunk arrives. A remote peer can split one valid MessagePack value across many small chunks, causing quadratic CPU usage and blocking the event loop.
Patches
The decoder now preserves incremental container state so completed elements are not parsed again when more input arrives.
Workarounds
Buffer each complete MessagePack value before decoding it, or limit the number of chunks accepted for a single value.
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-gcx5-hxj7-gpqq | github.com |
| Web | mcollina/msgpack5 commit e482764 | github.com |
| Web | mcollina/msgpack5 release v6.1.0 | github.com |
