protobufjs-cli: Code injection in pbjs static output from crafted schema names (protobufjs protobuf.js)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.40 % · percentile 34 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-94 — Improper Control of Generation of Code
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| 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 | GitHub_M |
| 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 · 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) |
Advisories
- GHSA-6r35-46g8-jcw9 — protobuf.js: Code injection in pbjs static output from crafted schema names
European references
- ENISA EUVD · EUVD-2026-30033
- GCVE · GCVE-0-2026-44295
Affected configurations (NVD CPE)
cpe:2.3:a:protobufjs_project:protobufjs-cli:*:*:*:*:*:node.js:*:*< 1.2.1cpe:2.3:a:protobufjs_project:protobufjs-cli:*:*:*:*:*:node.js:*:*≥ 2.0.0 < 2.0.2
Affected products
| Product | Versions |
|---|---|
| protobufjs · protobuf.js | affected >= 2.0.0, < 2.0.2 ; affected < 1.2.1 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |