CVE-2026-44291
JSON

8.1high

protobufjs: Code generation gadget after prototype pollution

Severity
8.1high CVSS:3.1 by GitHub_M
Exploit likelihood
0.57% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-75px-5xx7-5xc7

Description

protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.5.6 and 8.0.2, protobufjs used plain objects with inherited prototypes for internal type lookup tables used by generated encode and decode functions. If Object.prototype had already been polluted, those lookup tables could resolve attacker-controlled inherited properties as valid protobuf type information. This could cause attacker-controlled strings to be emitted into generated JavaScript code. 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_M8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94CWE-1321

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.5.6 and 8.0.2, protobufjs used plain objects with inherited prototypes for internal type lookup tables used by generated encode and decode functions. If Object.prototype had already been polluted, those lookup tables could resolve attacker-controlled inherited properties as valid protobuf type information. This could cause attacker-controlled strings to be emitted into generated JavaScript code. This vulnerability is fixed in 7.5.6 and 8.0.2.

GitHub Advisory Database

Summary

protobufjs used plain objects with inherited prototypes for internal type lookup tables used by generated encode and decode functions. If Object.prototype had already been polluted, those lookup tables could resolve attacker-controlled inherited properties as valid protobuf type information.

This could cause attacker-controlled strings to be emitted into generated JavaScript code.

Impact

An attacker who can first trigger a prototype pollution vulnerability may be able to influence generated protobufjs encode or decode functions in a way that can lead to arbitrary JavaScript execution.

This issue requires a separate prototype pollution primitive before protobufjs is invoked.

Applications without a reachable prototype pollution primitive are not directly exploitable through this issue alone.

Preconditions

  • The application or one of its dependencies must allow an attacker to pollute Object.prototype.
  • The polluted property must affect protobufjs internal type lookup behavior.
  • The application must use protobufjs functionality that generates encode or decode code for affected types.
  • The generated code path must be reached after the prototype pollution has occurred.

Workarounds

Avoid running affected versions in applications where attacker-controlled input can pollute Object.prototype. If immediate upgrade is not possible, remove or mitigate reachable prototype pollution primitives and isolate schema/message processing from untrusted application state.

NVD (es)

protobufjs compila definiciones de protobuf en funciones de JavaScript (JS). Antes de las versiones 7.5.6 y 8.0.2, protobufjs utilizaba objetos planos con prototipos heredados para las tablas internas de búsqueda de tipos usadas por las funciones generadas de codificación y decodificación. Si Object.prototype ya había sido contaminado, esas tablas de búsqueda podrían resolver propiedades heredadas controladas por el atacante como información de tipo protobuf válida. Esto podría causar que cadenas controladas por el atacante fueran emitidas en el código JavaScript generado. Esta vulnerabilidad está corregida en las versiones 7.5.6 y 8.0.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-44291 changed 2026-05-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-75px-5xx7-5xc7 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-44291 changed 2026-11-11Public domain