CVE-2026-107301

msgpack5: Partial options disable prototype protection

Published Oct 8, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
msgpack5 is a msgpack v5 implementation for node.js and the browser. Prior to 6.1.0, constructing msgpack5 with an empty or partial options object disables the default protoAction: 'error' protection. A decoded map containing a __proto__ key can then replace the decoded object's prototype, potentially changing inherited properties or downstream behavior, although Object.prototype is not modified globally. This issue is fixed in version 6.1.0.

Analysis

AI-generated

Technical impact

msgpack5 is a MessagePack implementation for Node.js and browsers. The library had a flaw where initializing the decoder with an empty or partially specified options object disables the default prototype-protection guard that rejects payload fragments containing a '__proto__' key. Consequently, an attacker can provide a crafted MessagePack payload that modifies the prototype chain of the decoded object, potentially altering inherited properties and affecting downstream logic. This vulnerability maps to CWE-1321: Prototype Pollution.

Affected Systems

Affected product is msgpack5 v6.0.x and earlier (up to 6.0.999). The fix is incorporated in version 6.1.0 and later. The risk applies to Node.js and browser deployments that employ msgpack5 via the mcollina/mcollina repository.

Risk and Exploitability

The CVSS score is 6.5, indicating medium severity. No EPSS score is reported, so the current exploitation probability is unknown. It is not listed in the CISA KEV catalog. If an application creates a msgpack5 instance with an empty or missing options object, an attacker who can supply a crafted payload can influence prototype inheritance, possibly leading to undesired logic or privileged actions depending on downstream use. The primary risk mitigated by applying the 6.1.0 patch or ensuring prototypes are protected.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install msgpack5 version 6.1.0 or newer.
  • Ensure all msgpack5 constructors are called with a non-empty options object that preserves the default protoAction 'error' protection.
  • Audit code for any instances where msgpack5 is instantiated with empty or missing options and update them to use the safe defaults.

Generated by OpenCVE AI on October 8, 2026 at 18:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8hq7-ggx2-cc6m msgpack5: Partial options disable prototype protection
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mcollina
Mcollina msgpack5
Vendors & Products Mcollina
Mcollina msgpack5
Type Values Removed Values Added
Description msgpack5 is a msgpack v5 implementation for node.js and the browser. Prior to 6.1.0, constructing msgpack5 with an empty or partial options object disables the default protoAction: 'error' protection. A decoded map containing a __proto__ key can then replace the decoded object's prototype, potentially changing inherited properties or downstream behavior, although Object.prototype is not modified globally. This issue is fixed in version 6.1.0.
Title msgpack5: Partial options disable prototype protection
Weaknesses CWE-1321
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L'}

Weaknesses
  • CWE-1321

    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 14, 2026, 1:02 AM
Reserved
Oct 7, 2026, 3:53 PM
Status
Deferred
Published
Oct 8, 2026, 5:17 PM
Modified
Oct 14, 2026, 1:17 AM