CVE-2026-107302
msgpack5: Truncated map32 headers throw an unexpected error
Description
Impact
A truncated map32 header causes an out-of-bounds buffer read and throws RangeError instead of IncompleteBufferError. Applications that rely on IncompleteBufferError to wait for additional bytes may terminate a request, stream, or worker unexpectedly. No adjacent memory is disclosed because the buffer implementation checks bounds.
Patches
The decoder now validates the complete five-byte map32 header before reading its length and reports truncated input as IncompleteBufferError.
Workarounds
Require at least five bytes before decoding a value beginning with 0xdf, or catch RangeError and treat it as incomplete input only for truncated map32 headers.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.webjars.npm » msgpack5via npm msgpack5 | >= 4.1.0, < 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
| Advisory | NVD CVE-2026-107302 | nvd.nist.gov |
| Package | mcollina/msgpack5 | github.com |
| Web | mcollina/msgpack5 advisory GHSA-8f34-f56x-9xph | github.com |
| Web | mcollina/msgpack5 commit 15443a1 | github.com |
| Web | mcollina/msgpack5 release v6.1.0 | github.com |
