Advisory

GHSA-24ch-f2g6-9hhh

Also known as: CVE-2026-107298

Summary

msgpack5: Deeply nested input can exhaust the decoder stack

Details

Impact

The decoder has no nesting-depth limit for arrays and maps. An attacker who can provide MessagePack input can use deeply nested containers to exhaust the JavaScript call stack and interrupt the process or request handler.

Patches

The decoder now limits nesting depth to 100 by default and throws Maximum decode depth exceeded. Applications can configure the limit with the maxDepth option.

Workarounds

Reject deeply nested input before decoding, isolate decoding in a worker, or enforce a trusted schema with a bounded nesting depth.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-10-08 17:39 UTC
Modified
2026-10-08 18:00 UTC

Affected packages and fixes

msgpack5

npm · All systems

Affected

  • introduced 0, fixed 6.1.0 (semver)

Fixed versions

6.1.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences