Skip to content

CVE-2026-42290 protobufjs-cli: OS Command Injection

HighCVSS 7.8 EPSS 0.13%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
npm protobufjs-cli(npm) < 1.2.1; <= 1.2.0; >= 2.0.0, < 2.0.2; >= 2.0.0, <= 2.0.1 1.2.1, 2.0.2 Fixed
protobufjs project protobufjs-cli < 1.2.1; >= 2.0.0, < 2.0.2 1.2.1, 2.0.2 Fixed
protobufjs protobuf.js = < 1.2.1; = >= 2.0.0, < 2.0.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
protobufjs protobuf.js = >= 2.0.0, < 2.0.2 No fix listed
protobufjs protobuf.js = < 1.2.1 No fix listed
npm protobufjs-cli(npm) <= 1.2.0 No fix listed
npm protobufjs-cli(npm) >= 2.0.0, <= 2.0.1 No fix listed
protobufjs project protobufjs-cli < 1.2.1 1.2.1
protobufjs project protobufjs-cli >= 2.0.0, < 2.0.2 2.0.2
npm protobufjs-cli(npm) < 1.2.1 1.2.1
npm protobufjs-cli(npm) >= 2.0.0, < 2.0.2 2.0.2

References