# CVE-2026-107302: msgpack5: Truncated map32 headers throw an unexpected error

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-10-08T17:14:19.514Z
- Modified: 2026-10-19T20:17:47.077Z
- Also known as: GHSA-8f34-f56x-9xph
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- mcollina msgpack5: >= 4.1.0. < 6.1.0
- msgpack5 (npm): from 4.1.0 before 6.1.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/mcollina/msgpack5/security/advisories/GHSA-8f34-f56x-9xph> (web)
- <https://github.com/mcollina/msgpack5/commit/15443a1f2aa682a6aa37f1705ac628de5b866ad1> (web)
- <https://github.com/mcollina/msgpack5/releases/tag/v6.1.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-107302> (advisory)
- <https://github.com/mcollina/msgpack5> (package)

## Sources

- CVE List: [CVE-2026-107302](https://www.cve.org/CVERecord?id=CVE-2026-107302), CVE Terms of Use, modified 2026-10-19
- GitHub Advisory Database: [GHSA-8f34-f56x-9xph](https://github.com/advisories/GHSA-8f34-f56x-9xph), CC-BY-4.0, modified 2026-10-19
- NVD: [CVE-2026-107302](https://nvd.nist.gov/vuln/detail/CVE-2026-107302), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-107302 · Whole record: https://cve.day/CVE-2026-107302.json · Rebuilt by cve.day 2026-11-25T22:59:43.194Z
