protobufjs-cli: Code injection in pbjs static output from crafted schema names
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| protobufjs | protobuf.js | 2.0.0 to before 2.0.2; before 1.2.1 | 2.0.2, 1.2.1 | Patch available | CNA |
| — | protobufjs-cli (npm) | before 1.2.1 | 1.2.1 | Patch available | GHSA-6r35-46g8-jcw9 |
| — | protobufjs-cli (npm) | 2.0.0 to before 2.0.2 | 2.0.2 | Patch available | GHSA-6r35-46g8-jcw9 |
- protobuf.js Vendorprotobufjs Affected 2.0.0 to before 2.0.2; before 1.2.1 Fixed in 2.0.2, 1.2.1 Patch available CNA
- protobufjs-cli (npm) Vendor— Affected before 1.2.1 Fixed in 1.2.1 Patch available GHSA-6r35-46g8-jcw9
- protobufjs-cli (npm) Vendor— Affected 2.0.0 to before 2.0.2 Fixed in 2.0.2 Patch available GHSA-6r35-46g8-jcw9
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:protobufjs_project:protobufjs-cli:*:*:*:*:*:node.js:*:* | before 1.2.1; 2.0.0 to before 2.0.2 | Vulnerable | protobufjs |
- cpe:2.3:a:protobufjs_project:protobufjs-cli:*:*:*:*:*:node.js:*:* Versions before 1.2.1; 2.0.0 to before 2.0.2 Vulnerable ·protobufjs
Remediation
- Fix · CNA protobuf.js (protobufjs) Fixed in 2.0.2, 1.2.1
- Fix · GHSA-6r35-46g8-jcw9 protobufjs-cli (npm) Fixed in 1.2.1 Advisory →
- Fix · GHSA-6r35-46g8-jcw9 protobufjs-cli (npm) Fixed in 2.0.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-44295
- 2026-10-03 Alias added: GHSA-6r35-46g8-jcw9
References
Advisory 2
More Protobufjs-cli vulnerabilities
- TI-2026-39171 protobufjs-cli: Code injection in pbjs static output from crafted JSON descriptor names CVSS 3.1HIGH 8.2
- TI-2026-30601 protobufjs-cli: OS Command Injection CVSS 3.1HIGH 7.8
- TI-2026-39169 protobufjs: Schema-derived names can shadow runtime-significant properties CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-44295 · CVE Program
- CVE-2026-44295 · NVD
- FIRST EPSS
- GHSA-6r35-46g8-jcw9 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences