CVE-2026-44295 protobufjs-cli: Code injection in pbjs static output from crafted schema names
HighCVSS 8.7
EPSS 0.40%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm protobufjs-cli(npm) | < 1.2.1; <= 1.2.0; >= 2.0.0, < 2.0.2; >= 2.0.0, <= 2.0.1 | 1.2.1, 2.0.2 | Fixed |
| protobufjs project protobufjs-cli | < 1.2.1; >= 2.0.0, < 2.0.2 | 1.2.1, 2.0.2 | Fixed |
| protobufjs protobuf.js | = < 1.2.1; = >= 2.0.0, < 2.0.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| protobufjs protobuf.js | = >= 2.0.0, < 2.0.2 | No fix listed |
| protobufjs protobuf.js | = < 1.2.1 | No fix listed |
| npm protobufjs-cli(npm) | <= 1.2.0 | No fix listed |
| npm protobufjs-cli(npm) | >= 2.0.0, <= 2.0.1 | No fix listed |
| protobufjs project protobufjs-cli | < 1.2.1 | 1.2.1 |
| protobufjs project protobufjs-cli | >= 2.0.0, < 2.0.2 | 2.0.2 |
| npm protobufjs-cli(npm) | < 1.2.1 | 1.2.1 |
| npm protobufjs-cli(npm) | >= 2.0.0, < 2.0.2 | 2.0.2 |
References
- https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-6r35-46g8-jcw9 vendor-advisory
- github.com
- github.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product