Protobufjs protobuf.js
protobufjs: Code generation gadget after prototype pollution
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.1high · scored by CNA · CWE-94
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
protobufjs protobuf.js
- < 7.5.6
- >= 8.0.0, < 8.0.2
Fixed in 7.5.6, 8.0.2
Mitigation
Upgrade protobuf.js to 7.5.6 or 8.0.2 or later.
References
- Vendor advisory github.com/protobufjs/protobuf.js/security/adv…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.