CVE-2026-59876

protobufjs: Text Format string map parsing can mutate returned map object prototype

Published Jul 8, 2026 CVSS 3.1 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
protobufjs compiles protobuf definitions into JavaScript (JS) functions. From 8.2.0 until 8.6.5, the protobufjs Text Format extension parsed string-keyed map entries using ordinary property assignment, allowing a map entry with key __proto__ to change the prototype of the returned map object instead of creating an own map entry in protobufjs/ext/textformat. This issue is fixed in version 8.6.5.

Analysis

AI-generated

Technical impact

protobuf.js compiles protobuf definitions into JavaScript functions, and from version 8.2.0 up to and including 8.6.5 its Text Format extension parsed string‑keyed map entries using ordinary property assignment. If a map entry key is "__proto__", the assignment changes the prototype of the returned map object instead of creating a distinct map entry, resulting in prototype pollution.

Affected Systems

The vulnerable component is the protobufjs library. Versions from 8.2.0 through 8.6.5 inclusive are affected; upgrading to 8.6.5 or a later release removes the flaw.

Risk and Exploitability

The CVSS score of 4.8 denotes low severity, and the EPSS score is under 1 %; the vulnerability is not catalogued in CISA KEV. Exploitation requires an attacker to supply crafted Text Format input containing a "__proto__" key that the application parses – this could occur locally or via an upstream data feed. With no known weaponised exploits and a modest CVSS, the overall risk is moderate; however, the potential for prototype pollution can undermine application security if untrusted data are parsed without validation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade protobuf.js to version 8.6.5 or later.
  • If an upgrade cannot be performed immediately, disable the Text Format extension or reject all input that contains a map key named "__proto__" or "constructor" before parsing.
  • Ensure that any untrusted data is never passed to the Text Format parser; add an explicit sanitisation step or input‑validation routine to guard against prototype pollution.

Generated by OpenCVE AI on August 1, 2026 at 16:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-jfj6-75fj-8934 protobufjs: Text Format string map parsing can mutate returned map object prototype
History
Type Values Removed Values Added
First Time appeared Protobuf
Protobuf protobuf
Vendors & Products Protobuf
Protobuf protobuf
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description protobufjs compiles protobuf definitions into JavaScript (JS) functions. From 8.2.0 until 8.6.5, the protobufjs Text Format extension parsed string-keyed map entries using ordinary property assignment, allowing a map entry with key __proto__ to change the prototype of the returned map object instead of creating an own map entry in protobufjs/ext/textformat. This issue is fixed in version 8.6.5.
Title protobufjs: Text Format string map parsing can mutate returned map object prototype
Weaknesses CWE-1321
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-1321

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

  • CWE-915

    Improperly Controlled Modification of Dynamically-Determined Object Attributes

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 9, 2026, 2:41 PM
Reserved
Jul 7, 2026, 3:41 PM
Status
Analyzed
Published
Jul 8, 2026, 4:16 PM
Modified
Oct 25, 2026, 5:10 PM
Severity
Moderate
Public date
Jul 8, 2026, 3:31 PM