{"id":"CVE-2026-107302","aliases":["CVE-2026-107302","GHSA-8f34-f56x-9xph"],"related":[],"kind":"vulnerability","state":"published","title":"msgpack5: Truncated map32 headers throw an unexpected error","summary":"msgpack5 is a msgpack v5 implementation for node.js and the browser. Prior to 6.1.0, the decoder reads the four-byte length of a map32 value before validating that the complete five-byte header is available. A truncated map32 header therefore causes a checked out-of-bounds buffer read and throws RangeError instead of IncompleteBufferError, which can unexpectedly terminate a request, stream, or worker in applications that wait for additional bytes after IncompleteBufferError. There is no adjacent-memory disclosure because the buffer implementation checks bounds. This issue is fixed in version 6.1.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"msgpack5 is a msgpack v5 implementation for node.js and the browser. Prior to 6.1.0, the decoder reads the four-byte length of a map32 value before validating that the complete five-byte header is available. A truncated map32 header therefore causes a checked out-of-bounds buffer read and throws RangeError instead of IncompleteBufferError, which can unexpectedly terminate a request, stream, or worker in applications that wait for additional bytes after IncompleteBufferError. There is no adjacent-memory disclosure because the buffer implementation checks bounds. This issue is fixed in version 6.1.0.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-10-08T17:14:19.514Z","modified":"2026-10-19T20:17:47.077Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":">= 4.1.0. < 6.1.0","status":"affected"}],"vendor":"mcollina","product":"msgpack5","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.1.0","status":"affected","fixed":"6.1.0"}],"ecosystem":"npm","package":"msgpack5","purl":"pkg:npm/msgpack5","source":"ghsa"}],"references":[{"url":"https://github.com/mcollina/msgpack5/security/advisories/GHSA-8f34-f56x-9xph","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mcollina/msgpack5/commit/15443a1f2aa682a6aa37f1705ac628de5b866ad1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mcollina/msgpack5/releases/tag/v6.1.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107302","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mcollina/msgpack5","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-08T17:32:15.263Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-107302","url":"https://www.cve.org/CVERecord?id=CVE-2026-107302","licence":"CVE Terms of Use","modified":"2026-10-19T19:29:15.139Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8f34-f56x-9xph","url":"https://github.com/advisories/GHSA-8f34-f56x-9xph","licence":"CC-BY-4.0","modified":"2026-10-19T19:45:04.408Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-107302","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107302","licence":"Public domain","modified":"2026-10-19T20:17:47.077Z"}],"updatedAt":"2026-11-25T22:59:43.194Z","epss":{"score":0.0052,"percentile":0.45687,"date":"2026-12-01T12:00:22.000Z"}}