Description
protobufjs-cli is the command line add-on for protobuf.js. Prior to 1.2.1 and 2.0.2, pbjs static code generation could emit unsafe JavaScript identifiers derived from schema-controlled names. When generating static JavaScript from a crafted schema or JSON descriptor, certain namespace, enum, service, or derived full names could be written into the generated output without sufficient sanitization. This vulnerability is fixed in 1.2.1 and 2.0.2.
Affected products
protobufjs_project: protobufjs-cli
References1
- github.com/protobufjs/protobuf.js/security/advisories/GHSA-6r35… Vendor Advisory
Metrics
- CVSS 3.1
-
8.7
HIGH
Score source: NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N - EPSS — exploit probability
- 0% percentile: 34 · as of 14 November 2026
- CWE
- CWE-94
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.