CVE-2026-44291 PUBLISHED

protobufjs: Code generation gadget after prototype pollution

Assigner: GitHub_M
Reserved: 05.05.2026 Published: 13.05.2026 Updated: 13.05.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 8.1

Product Status

Vendor protobufjs
Product protobuf.js
Versions
  • Version < 7.5.6 is affected
  • Version >= 8.0.0, < 8.0.2 is affected

References

Problem Types

  • CWE-94: Improper Control of Generation of Code ('Code Injection') CWE