CVE-2026-44292
JSON

5.3medium

protobufjs: Prototype injection in generated message constructors

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.26% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-fx83-v9x8-x52w

Description

protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.5.6 and 8.0.2, protobufjs generated message constructors copied enumerable properties from a provided properties object without filtering the __proto__ key. If an application constructed a message from an attacker-controlled plain object, an own enumerable __proto__ property could alter the prototype of that individual message instance. This vulnerability is fixed in 7.5.6 and 8.0.2.

Affected

Product or packageVersionsReported by
protobufjs protobuf.js< 7.5.6, >= 8.0.0, < 8.0.2CVE List
protobufjs (npm)before 7.5.6, from 8.0.0 before 8.0.2GitHub Advisory Database
protobufjs_project protobufjsbefore 7.5.6, from 8.0.0 before 8.0.2NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Classification

CWE-1321

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.5.6 and 8.0.2, protobufjs generated message constructors copied enumerable properties from a provided properties object without filtering the __proto__ key. If an application constructed a message from an attacker-controlled plain object, an own enumerable __proto__ property could alter the prototype of that individual message instance. This vulnerability is fixed in 7.5.6 and 8.0.2.

GitHub Advisory Database

Summary

protobufjs generated message constructors copied enumerable properties from a provided properties object without filtering the __proto__ key. If an application constructed a message from an attacker-controlled plain object, an own enumerable __proto__ property could alter the prototype of that individual message instance.

Impact

An attacker who can control the properties object passed to a generated protobufjs message constructor or creation helper may be able to modify the prototype chain of the resulting message instance.

This is a per-instance prototype injection issue. It does not pollute Object.prototype or other global prototypes. The impact depends on downstream application behavior, such as relying on inherited properties, prototype methods, or instanceof checks for message objects.

Applications that only decode binary protobuf data, or that construct messages from trusted application-defined objects, are not directly affected by this issue.

Preconditions

  • The application must allow an attacker to control or influence a plain object used to construct a protobufjs message.
  • The object must contain an own enumerable __proto__ property, for example from parsed JSON input.
  • The application must pass that object to a generated message constructor or creation helper that copies arbitrary enumerable properties.

Workarounds

Do not pass attacker-controlled plain objects directly to generated message constructors with affected versions. If untrusted JSON input must be accepted, validate or sanitize object keys before constructing messages, and reject __proto__ properties.

NVD (es)

protobufjs compila definiciones de protobuf en funciones de JavaScript (JS). Antes de 7.5.6 y 8.0.2, protobufjs generaba constructores de mensajes que copiaban propiedades enumerables de un objeto de propiedades proporcionado sin filtrar la clave __proto__. Si una aplicación construía un mensaje a partir de un objeto plano controlado por un atacante, una propiedad __proto__ enumerable propia podría alterar el prototipo de esa instancia de mensaje individual. Esta vulnerabilidad está corregida en 7.5.6 y 8.0.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-44292 changed 2026-05-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-fx83-v9x8-x52w changed 2026-09-10CC-BY-4.0
NVDCVE-2026-44292 changed 2026-11-11Public domain