CVE-2026-44295 — protobuf.js: Code injection in protobufjs-cli
protobuf.js: Code injection in pbjs static output from crafted schema names
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.36%). Schedule for your next planned update.
Does your project use an affected protobufjs-cli version?
Paste your package-lock.json to check it for CVE-2026-44295 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
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.
Impact
An attacker who can provide or influence schemas passed to pbjs may be able to cause generated JavaScript output to contain attacker-controlled code. The injected code would run if the generated file is later executed or imported by the application or build process.
This affects the protobufjs CLI static code generation path. Applications that only use trusted schemas, or that do not execute generated output from untrusted schemas, are not directly affected.
Preconditions
- The application or build process must run
pbjsstatic code generation on a schema or JSON descriptor influenced by an attacker. - The attacker-controlled input must contain crafted schema names that reach generated JavaScript output.
- The generated JavaScript file must subsequently be executed, imported, or otherwise evaluated.
Workarounds
Do not run affected versions of pbjs static code generation on untrusted schemas or descriptors. If untrusted schemas must be accepted, validate schema names before code generation and run generation in an isolated environment.
Advisory Timeline
- First published May 12, 2026 (198 days ago).
- Last revised September 10, 2026 — 121 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install protobufjs-cli@2.0.2
npm install protobufjs-cli@1.2.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| protobufjs-cli npm · Affected: All versions | 2.0.2 |
| protobufjs-cli npm · Affected: All versions | 1.2.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.7 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
References
- https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-6r35-46g8-jcw9WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-44295ADVISORY
- https://github.com/protobufjs/protobuf.jsPACKAGE
- https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-cli-v1.2.1WEB
- https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-cli-v2.0.2WEB
Frequently Asked Questions
- What is CVE-2026-44295?
- protobuf.js: Code injection in pbjs static output from crafted schema names. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.7/10).
- How do I check if my project is affected by CVE-2026-44295?
- CVE-2026-44295 affects protobufjs-cli. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-44295 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 22.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution