GHSA-5x5g-h9x8-2fh9: High severity npm/msgpack5 vulnerability

Published Oct 8, 2026
·
Updated

Impact

The streaming decoder recursively invokes itself for every complete value remaining in a chunk. A single chunk containing many small valid MessagePack values can exhaust the JavaScript call stack and interrupt the process or stream.

Patches

The streaming decoder now drains concatenated values iteratively with constant call-stack depth.

Workarounds

Limit the number of MessagePack values accepted in one chunk, or split large batches before passing them to the decoder stream.

Affected Software

1 affected componentFixes available
npm/msgpack5<6.1.0
6.1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/msgpack5 to a version that resolves this vulnerability.

    Fixed in 6.1.0
  2. Compensating control

    Limit the number of MessagePack values accepted in a single chunk, or split large batches before passing them to the decoder stream.

Event History

Oct 8, 2026
Advisory Published
via GitHub·05:40 PM
Data Sourced
via GitHub·05:40 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this denial-of-service condition?

Deployments that use the msgpack5 streaming decoder and accept chunks containing concatenated MessagePack values are exposed. A chunk with many small, valid values can interrupt the affected process or stream.

2

What does an attacker need to do to trigger the issue?

An attacker needs to supply a single chunk containing many small valid MessagePack values to the streaming decoder. No authentication, user interaction, or special conditions are indicated by the provided severity vector.

3

What can be done if updating is not immediately possible?

Limit the number of MessagePack values accepted in each chunk, or split large batches before passing them to the decoder stream. These measures reduce the recursive processing that exhausts the JavaScript call stack.

4

What change addresses the problem?

The patched streaming decoder drains concatenated values iteratively, using constant call-stack depth instead of recursively invoking itself for each remaining value in a chunk. The referenced release tag is v6.1.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203