Command Injection Affecting protobufjs-cli package, versions <1.2.1>=2.0.0-experimental <2.0.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PROTOBUFJSCLI-16643433
  • published14 May 2026
  • disclosed12 May 2026
  • credit0x5t4l1n Stalin

Introduced: 12 May 2026

NewCVE-2026-42290  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade protobufjs-cli to version 1.2.1, 2.0.2 or higher.

Overview

protobufjs-cli is a Translates between file formats and generates static code as well as TypeScript definitions.

Affected versions of this package are vulnerable to Command Injection via pbts. An attacker can execute arbitrary shell commands by supplying file paths containing shell metacharacters, which are interpreted by the shell when the process constructs and executes a command string.

CVSS Base Scores

version 4.0
version 3.1