GHSA-gcx5-hxj7-gpqq

Suggest an improvement
Source
https://github.com/advisories/GHSA-gcx5-hxj7-gpqq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-gcx5-hxj7-gpqq/GHSA-gcx5-hxj7-gpqq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gcx5-hxj7-gpqq
Aliases
Published
2026-10-08T17:39:46Z
Modified
2026-10-08T18:00:08Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
msgpack5: Quadratic parsing in the streaming decoder
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-407"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-10-08T17:39:46Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
}
References

Affected packages

npm / msgpack5

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
6.1.0

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"