CVE-2026-42290
HIGH 7.8CVSS 3.1protobuf.js is Vulnerable to OS Command Injection in the CLI
protobufjs-cli is the command line add-on for protobuf.js. Prior to 1.2.1 and 2.0.2, pbts invoked JSDoc by building a shell command string from input file paths and executing it through child_process.exec. File paths containing shell metacharacters could therefore be interpreted by the shell instead of being passed to JSDoc as plain arguments. 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-78
- Also known as
- GHSA-f84p-cvgm-xgjj
- Sources
- NVDJSONOSV GHSA-f84p-cvgm-xgjjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
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-f84p-cvgm-xgjj · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-42290 · 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:11 UTC · OSV: first stored (published 12 May 2026)