CVE-2026-44295
HIGH 8.7CVSS 3.1protobuf.js: Code injection in pbjs static output from crafted schema names
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.
- Published
- 13 May 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-94
- Also known as
- GHSA-6r35-46g8-jcw9
- Sources
- NVDJSONOSV GHSA-6r35-46g8-jcw9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | protobufjs_project | protobufjs-clicpe:2.3:a:protobufjs_project:protobufjs-cli:*:*:*:*:*:node.js:*:* |
< 1.2.1 | 1.2.1 |
| NVD | protobufjs_project | protobufjs-clicpe:2.3:a:protobufjs_project:protobufjs-cli:*:*:*:*:*:node.js:*:* |
>= 2.0.0, < 2.0.2 | 2.0.2 |
| OSV | npm | protobufjs-cli | < 1.2.1 | 1.2.1 |
| OSV | npm | protobufjs-cli | >= 2.0.0, < 2.0.2 | 2.0.2 |
References
- https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-6r35-46g8-jcw9 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-44295 · ADVISORY
- https://github.com/protobufjs/protobuf.js · PACKAGE
- https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-cli-v1.2.1 · WEB
- https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-cli-v2.0.2 · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 13 May 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 12 May 2026)