protobufjs: Code generation gadget after prototype pollution
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 7.5.6 and 8.0.2.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| protobufjs | <7.5.6, >=8.0.0 <8.0.2 | ||
| protobufjs_project | protobufjs | <7.5.6, >=8.0.0 <8.0.2 | 7.5.6, 8.0.2 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket