{"id":"GHSA-8f34-f56x-9xph","revision":"b91664ff229841fbb873919c118f22bc","records":[{"revision":"b91664ff229841fbb873919c118f22bc","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-8f34-f56x-9xph","aliases":["CVE-2026-107302"],"title":"msgpack5: Truncated map32 headers throw an unexpected error","description":"### Impact\n\nA 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.\n\n### Patches\n\nThe decoder now validates the complete five-byte `map32` header before reading its length and reports truncated input as `IncompleteBufferError`.\n\n### Workarounds\n\nRequire 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.","state":0,"publishedAt":"2026-10-08T17:40:10+00:00","modifiedAt":"2026-10-19T19:45:04.4080715+00:00","affected":[{"ecosystem":"npm","name":"msgpack5","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"4.1.0"},{"kind":"fixed","version":"6.1.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/mcollina/msgpack5/security/advisories/GHSA-8f34-f56x-9xph","https://nvd.nist.gov/vuln/detail/CVE-2026-107302","https://github.com/mcollina/msgpack5/commit/15443a1f2aa682a6aa37f1705ac628de5b866ad1","https://github.com/mcollina/msgpack5","https://github.com/mcollina/msgpack5/releases/tag/v6.1.0"],"sourceUrl":"https://github.com/advisories/GHSA-8f34-f56x-9xph","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-8f34-f56x-9xph","identifiers":["GHSA-8f34-f56x-9xph","CVE-2026-107302"]},"retained":false,"historicalAffected":[]}],"coverage":[]}