Advisory

GHSA-8f34-f56x-9xph

Also known as: CVE-2026-107302

Summary

msgpack5: Truncated map32 headers throw an unexpected error

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-10-08 17:40 UTC
Modified
2026-10-19 19:45 UTC

Affected packages and fixes

msgpack5

npm · All systems

Affected

  • introduced 4.1.0, fixed 6.1.0 (semver)

Fixed versions

6.1.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences