Vulnerability · Published May 13, 2026 · Assigned by GitHub_M

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

High 7.8

In plain English

A high-severity OS command injection in protobuf.js from protobufjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.1%top 97.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmprotobufjs-cli1.2.1GHSA-f84p-cvgm-xgjj
npmprotobufjs-cli2.0.2GHSA-f84p-cvgm-xgjj

Affected products (as reported)

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

Weakness: CWE-78 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References