msgpack5: Quadratic parsing in the streaming decoder
### Impact The streaming decoder reparses an incomplete container from the beginning whenever another chunk arrives. A remote peer can split one valid MessagePack value across many small chunks, causing quadratic CPU usage and blocking the event loop. ### Patches The decoder now preserves incremental container state so completed elements are not parsed again when more input arrives. ### Workarounds Buffer each complete MessagePack value before decoding it, or limit the number of chunks accepted for a single value.
- Products
- msgpack5
- Affected versions
- Not specified
- Fixed versions
- 6.1.0
- CVEs
- CVE-2026-107297
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 28 Oct 2026, 10:03 UTC · Revision 1
Source evidence
msgpack5: Quadratic parsing in the streaming decoder
core-osv · Original sourcePublished 8 Oct 2026, 17:39 UTC
### Impact The streaming decoder reparses an incomplete container from the beginning whenever another chunk arrives. A remote peer can split one valid MessagePack value across many small chunks, causing quadratic CPU usage and blocking the event loop. ### Patches The decoder now preserves incremental container state so completed elements are not parsed again when more input arrives. ### Workarounds Buffer each complete MessagePack value before decoding it, or limit the number of chunks accepted for a single value.
osv:GHSA-gcx5-hxj7-gpqq
msgpack5
Fixed versions: 6.1.0
Complete source record
{
"id": "f22468dd53ac5e6c6c1628c446bc22c223e6e44e0ae88ccf84d7b41576b26733",
"url": "https://osv.dev/vulnerability/GHSA-gcx5-hxj7-gpqq",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "msgpack5: Quadratic parsing in the streaming decoder",
"summary": "### Impact The streaming decoder reparses an incomplete container from the beginning whenever another chunk arrives. A remote peer can split one valid MessagePack value across many small chunks, causing quadratic CPU usage and blocking the event loop. ### Patches The decoder now preserves incremental container state so completed elements are not parsed again when more input arrives. ### Workarounds Buffer each complete MessagePack value before decoding it, or limit the number of chunks accepted for a single value.",
"evidence": "osv:GHSA-gcx5-hxj7-gpqq",
"products": [
{
"name": {
"value": "msgpack5",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.0",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "GHSA-gcx5-hxj7-gpqq",
"aliases": [
"CVE-2026-107297",
"GHSA-gcx5-hxj7-gpqq"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "6.1.0"
}
]
}
],
"package": {
"name": "msgpack5",
"purl": "pkg:npm/msgpack5",
"ecosystem": "npm"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-gcx5-hxj7-gpqq/GHSA-gcx5-hxj7-gpqq.json"
}
}
],
"modified": "2026-10-08T18:00:08.904462199Z",
"provider": "osv",
"references": [
"https://github.com/mcollina/msgpack5/security/advisories/GHSA-gcx5-hxj7-gpqq",
"https://github.com/mcollina/msgpack5/commit/e4827641d3105e295cbbd56e9c5389978547eab4",
"https://github.com/mcollina/msgpack5",
"https://github.com/mcollina/msgpack5/releases/tag/v6.1.0"
],
"provider_metadata": {
"cwe_ids": [
"CWE-407"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2026-10-08T17:39:46Z"
}
},
"related_cves": [
{
"value": "CVE-2026-107297",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 104434,
"published_at": "2026-10-08T17:39:46+00:00"
}