{"id":"CVE-2026-107297","published":"2026-10-08T17:07:03Z","modified":"2026-10-08T17:26:27Z","title":"msgpack5: Quadratic parsing in the streaming decoder","vendor":"mcollina","product":"msgpack5","tier":"tail","description":{"text":"msgpack5 is a msgpack v5 implementation for node.js and the browser. Prior to 6.1.0, the streaming decoder reparses an incomplete array or map from the beginning whenever another chunk arrives. A remote peer can split one valid MessagePack container across many small chunks, causing completed elements to be decoded repeatedly, producing quadratic CPU use and blocking the event loop. This issue is fixed in version 6.1.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00515,"percentile":0.37164,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/mcollina/msgpack5/security/advisories/GHSA-gcx5-hxj7-gpqq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mcollina/msgpack5/commit/e4827641d3105e295cbbd56e9c5389978547eab4","tags":["x_refsource_MISC"]},{"url":"https://github.com/mcollina/msgpack5/releases/tag/v6.1.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":7.43},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"mcollina","affectedVersions":[{"vendor":"mcollina","product":"msgpack5","versions":["< 6.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-08T17:26:19.427864Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"msgpack5","vulnerableRanges":["<6.1.0"],"patched":["6.1.0"],"from":["GHSA-gcx5-hxj7-gpqq"],"provenance":"source"}],"summary":{"text":"The streaming decoder in msgpack5, a MessagePack v5 implementation for Node.js and the browser, reparses incomplete arrays and maps from the beginning each time a new chunk arrives, repeatedly decoding already-completed elements. An attacker who can send data to a service using the decoder, without authentication or user interaction, can split one valid container into many small chunks to drive quadratic CPU use and block the event loop, but the attack depends on the attacker being able to supply input that is streamed through the decoder.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:23Z"},"euvd":{"id":"EUVD-2026-95108","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mcollina-msgpack5-cve-2021-21368","parents":[{"from":"CVE-2021-21368","to":"CVE-2026-107297","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/decoder.js"],"commits":["https://github.com/mcollina/msgpack5/commit/d4e6cb956ae51c8bb2828e71c7c1107c340cf1e8","https://github.com/mcollina/msgpack5/commit/e4827641d3105e295cbbd56e9c5389978547eab4"],"basis":"shared function","functions":["buildDecode"]}]}],"children":[{"from":"CVE-2026-107297","to":"CVE-2026-107298","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/decoder.js"],"commits":["https://github.com/mcollina/msgpack5/commit/e4827641d3105e295cbbd56e9c5389978547eab4","https://github.com/mcollina/msgpack5/commit/1e2b5874e555dd7c99417f64788a03b0590bb102"],"basis":"shared function","functions":["buildDecode","decodeMap"]}]},{"from":"CVE-2026-107297","to":"CVE-2026-107299","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/decoder.js","lib/streams.js"],"commits":["https://github.com/mcollina/msgpack5/commit/e4827641d3105e295cbbd56e9c5389978547eab4","https://github.com/mcollina/msgpack5/commit/85da345bf1acc18ca441741e5cf4aa0ed0d69314"],"basis":"rarely changed file"}]},{"from":"CVE-2026-107297","to":"CVE-2026-107300","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/streams.js"],"commits":["https://github.com/mcollina/msgpack5/commit/e4827641d3105e295cbbd56e9c5389978547eab4","https://github.com/mcollina/msgpack5/commit/77fbef144d05def5d16fc22c37caa64c0a7efeba"],"basis":"rarely changed file"}]}]}}