7.8High

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

protobufjs protobuf.js Published: (6 months ago)

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.

Weakness (CWE): CWE-78

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
protobufjs protobuf.js >= 2.0.0, < 2.0.2, < 1.2.1
protobufjs project protobufjs-cli < 1.2.1

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:protobufjs_project:protobufjs-cli:*:*:*:*:*:node.js:*:* < 1.2.1
  • cpe:2.3:a:protobufjs_project:protobufjs-cli:*:*:*:*:*:node.js:*:* ≥ 2.0.0 < 2.0.2