Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-42290: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in protobufjs protobuf.js

0
High
VulnerabilityCVE-2026-42290cvecve-2026-42290cwe-78
Published: Wed May 13 2026 (05/13/2026, 14:49:30 UTC)
Source: CVE Database V5
Vendor/Project: protobufjs
Product: protobuf.js

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/13/2026, 15:51:35 UTC

Technical Analysis

The protobufjs-cli tool used by protobuf.js versions before 1.2.1 and 2.0.2 invokes JSDoc by building a shell command string from user-supplied file paths and executing it with child_process.exec. Because the file paths are not properly sanitized, shell metacharacters in these paths can be interpreted by the shell, leading to OS command injection (CWE-78). This vulnerability allows an attacker with local access to execute arbitrary commands with the privileges of the user running the tool. The issue is resolved by updating to protobufjs-cli versions 1.2.1 or 2.0.2, which properly handle input sanitization.

Potential Impact

Successful exploitation can lead to arbitrary code execution with the privileges of the user running protobufjs-cli. This can result in full compromise of the affected system, including confidentiality, integrity, and availability impacts. The CVSS 3.1 base score is 7.8 (High), reflecting local attack vector, low complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

This vulnerability is fixed in protobufjs-cli versions 1.2.1 and 2.0.2. Users should upgrade to these or later versions to remediate the issue. No other official remediation or temporary fixes are documented. Patch status is not explicitly stated in the vendor advisory, but the description confirms the fix in these versions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-26T12:13:55.551Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a049713cbff5d8610dffde8

Added to database: 5/13/2026, 3:21:55 PM

Last enriched: 5/13/2026, 3:51:35 PM

Last updated: 5/14/2026, 6:46:34 AM

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses