製品・ソフトウェアに関する情報
protobufjs projectのprotobufjs-cliにおけるOS コマンドインジェクションの脆弱性
Title protobufjs projectのprotobufjs-cliにおけるOS コマンドインジェクションの脆弱性
Summary

protobufjs-cli は protobuf.js のコマンドラインアドオンです。バージョン 1.2.1 および 2.0.2 より前では、pbts が入力ファイルパスからシェルコマンド文字列を構築し、それを child_process.exec を通じて実行することで JSDoc を呼び出していました。そのため、シェルのメタキャラクターを含むファイルパスがシェルによって解釈され、JSDoc にプレーンな引数として正しく渡されない可能性がありました。この脆弱性はバージョン 1.2.1 および 2.0.2 で修正されています。

Possible impacts 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 13, 2026, midnight
Registration Date May 21, 2026, 10:55 a.m.
Last Update May 21, 2026, 10:55 a.m.
CVSS3.0 : 重要
Score 7.8
Vector CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected System
protobufjs project
protobufjs-cli 1.2.1 未満
protobufjs-cli 2.0.0 以上 2.0.2 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年05月21日]
  掲載
May 21, 2026, 10:55 a.m.

NVD Vulnerability Information
CVE-2026-42290
Summary

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.

Publication Date May 14, 2026, 1:16 a.m.
Registration Date May 15, 2026, 4:21 a.m.
Last Update May 20, 2026, 5:56 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
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
Related information, measures and tools
Common Vulnerabilities List