8.1High

CVE-2026-44291protobufjs: Code generation gadget after prototype pollution

protobufjs protobuf.js Published: (6 months ago)

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.

Weakness (CWE): CWE-94

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
protobufjs protobuf.js < 7.5.6, >= 8.0.0, < 8.0.2
protobufjs project protobufjs < 7.5.6

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:* < 7.5.6
  • cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:* ≥ 8.0.0 < 8.0.2