Advisory

GHSA-8hq7-ggx2-cc6m

Also known as: CVE-2026-107301

Summary

msgpack5: Partial options disable prototype protection

Details

Impact

Passing an empty or partial options object disables the default protoAction: 'error' protection. A map containing a __proto__ key can then replace the prototype of the decoded object, potentially changing inherited properties or causing unexpected behavior in downstream code.

Only the decoded object's prototype is affected; this does not modify Object.prototype globally.

Patches

Options are now merged with secure defaults without modifying the caller's object. Unsupported protoAction values are rejected.

Workarounds

Explicitly set protoAction: 'error' whenever constructing a msgpack5 instance, and validate decoded values before use.

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