{"id":"CVE-2026-42290","aliases":["CVE-2026-42290","GHSA-f84p-cvgm-xgjj"],"related":[],"kind":"vulnerability","state":"published","title":"protobufjs-cli: OS Command Injection","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\n`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.\n\n## Impact\n\nAn attacker who can control file names or paths passed to `pbts` may be able to execute arbitrary shell commands with the privileges of the process running `pbts`.\n\nThis affects the protobufjs CLI tooling path. The protobufjs runtime APIs for encoding, decoding, parsing, and loading protobuf messages are not directly affected by this issue.\n\n## Preconditions\n\n- The application or user must invoke `pbts` on file paths influenced by an attacker.\n- The attacker must be able to supply or create a path containing shell-significant characters.\n- The vulnerable `pbts` version must execute the generated JSDoc command through a shell.\n\n## Workarounds\n\nDo not run affected versions of `pbts` on attacker-controlled file names or paths. If this cannot be avoided, sanitize or rename input files before invoking `pbts`, or run the CLI in an isolated environment with minimal privileges.","format":"markdown","source":"ghsa"},{"lang":"es","text":"protobufjs-cli es el complemento de línea de comandos para protobuf.js. Antes de 1.2.1 y 2.0.2, pbts invocaba JSDoc al construir una cadena de comando de shell a partir de rutas de archivos de entrada y ejecutarla a través de child_process.exec. Las rutas de archivos que contenían metacaracteres de shell podían, por lo tanto, ser interpretadas por el shell en lugar de ser pasadas a JSDoc como argumentos simples. Esta vulnerabilidad está corregida en 1.2.1 y 2.0.2.","source":"nvd"}],"published":"2026-05-12T14:59:45.000Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":">= 2.0.0, < 2.0.2","status":"affected"},{"version":"< 1.2.1","status":"affected"}],"vendor":"protobufjs","product":"protobuf.js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.1"}],"ecosystem":"npm","package":"protobufjs-cli","purl":"pkg:npm/protobufjs-cli","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.0.2"}],"ecosystem":"npm","package":"protobufjs-cli","purl":"pkg:npm/protobufjs-cli","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.2.1"},{"status":"affected","introduced":"2.0.0","fixed":"2.0.2"}],"vendor":"protobufjs_project","product":"protobufjs-cli","cpe":"cpe:2.3:a:protobufjs_project:protobufjs-cli:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-f84p-cvgm-xgjj","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42290","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/protobufjs/protobuf.js","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-cli-v1.2.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-cli-v2.0.2","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-18T13:52:37.731Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42290","url":"https://www.cve.org/CVERecord?id=CVE-2026-42290","licence":"CVE Terms of Use","modified":"2026-05-18T13:54:57.889Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f84p-cvgm-xgjj","url":"https://github.com/advisories/GHSA-f84p-cvgm-xgjj","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:46.781Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42290","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42290","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.571Z","epss":{"score":0.00183,"percentile":0.08273,"date":"2026-12-01T12:00:22.000Z"}}