Vulnerability
CVE-2026-42290
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.
5 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-5rhj-37qh-8q26
- CGA-82h9-7xqm-337f
- CGA-p532-2r98-q8v3
- CGA-w3gg-66qg-39p2
-
GHSA-f84p-cvgm-xgjj
protobuf.js is Vulnerable to OS Command Injection in the CLI