CVE-2026-44295 Details
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.
A code injection vulnerability has been identified in protobufjs-cli, the command line tool for protobuf.js, affecting versions through 1.2.0 and 2.0.0 prior to 2.0.2. The issue arises in the 'pbjs' static code generation process, where unsafe JavaScript identifiers can be generated from schema-controlled names without adequate sanitization. This vulnerability allows an attacker to inject code into the output by crafting specific schema or JSON descriptors. The injected code could be executed if the generated file is later run or imported into an application or build process.
Users can upgrade to protobufjs-cli versions 1.2.1 or 2.0.2 to address this vulnerability. It is also recommended to avoid running 'pbjs' static code generation on untrusted schemas or descriptors. If untrusted schemas must be used, validate schema names before code generation and conduct the generation process in an isolated environment.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-6r35-46g8-jcw9 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| protobufjs project protobufjs-cli | < 1.2.1 >= 2.0.0, < 2.0.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 19, 2026 | Initial Analysis | [email protected] |
| May 13, 2026 | New CVE Received | [email protected] |