home / blog
2026-11-22 · high
CVE-2026-42290: Injection Vulnerability in protobufjs-cli
Injection vulnerability in protobufjs-cli. Patches available in versions 1.2.1 and 2.0.2.

CVE-2026-42290 concerns an injection vulnerability in the pbts component of protobufjs-cli. The vulnerability occurs when JSDoc is invoked by building a shell command string from input file paths and executing it through child_process.exec. File paths containing shell metacharacters may be interpreted by the shell instead of being passed as plain arguments to JSDoc.
The vulnerability has a CVSS score of 7.8, classified as high. The status is verified in NVD where it was published on May 13, 2026. Signals indicate that verified proof of concepts have been released on GitHub.
Security teams should update protobufjs-cli instances to patched versions 1.2.1 or 2.0.2. If an update is not immediately possible, mitigations such as strict validation of file paths before processing them with pbts can be applied.
At a glance
- What
- Injection vulnerability in protobufjs-cli, component of the protobuf.js library, allowing unauthorized command execution through unsanitized file paths.
- Severity
- High (CVSS 7.8)
- Affected versions
- Versions prior to 1.2.1 and 2.0.2
- Fix
- Versions 1.2.1 and 2.0.2
- Status
- Verified in NVD (published on 2026-05-13)
- Action
- Update to version 1.2.1 or 2.0.2, or apply appropriate mitigations
Sources: NVD, CVE-2026-42290