CVE-2026-42290 PUBLISHED

protobufjs-cli: OS Command Injection

Assigner: GitHub_M
Reserved: 26.04.2026 Published: 13.05.2026 Updated: 13.05.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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS Score: 7.8

Product Status

Vendor protobufjs
Product protobuf.js
Versions
  • Version >= 2.0.0, < 2.0.2 is affected
  • Version < 1.2.1 is affected

References

Problem Types

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE