CVE-2026-42290
Published:May 13, 2026
Updated:May 18, 2026
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.
Affected Packages
https://github.com/protobufjs/protobuf.js.git (GITHUB):
Affected version(s) >=protobufjs-cli-v1.0.0 <protobufjs-cli-v1.2.1Fix Suggestion:
Update to version protobufjs-cli-v1.2.1https://github.com/protobufjs/protobuf.js.git (GITHUB):
Affected version(s) >=protobufjs-cli-v2.0.0 <protobufjs-cli-v2.0.2Fix Suggestion:
Update to version protobufjs-cli-v2.0.2protobufjs-cli (NPM):
Affected version(s) >=1.0.0-beta.0 <1.2.1Fix Suggestion:
Update to version 1.2.1protobufjs-cli (NPM):
Affected version(s) >=1.0.0-beta.0 <1.2.1Fix Suggestion:
Update to version 1.2.1protobufjs-cli (NPM):
Affected version(s) >=2.0.0 <2.0.2Fix Suggestion:
Update to version 2.0.2protobufjs-cli (NPM):
Affected version(s) >=2.0.0 <2.0.2Fix Suggestion:
Update to version 2.0.2Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.5
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.8
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
EPSS
Base Score:
0.02