OS Command Injection Affecting @wong2/mcp-cli package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.91% (83rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about OS Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-WONG2MCPCLI-12205740
  • published29 Aug 2025
  • disclosed20 Aug 2025
  • creditsuperboy-zjc

Introduced: 20 Aug 2025

NewCVE-2025-9262  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

@wong2/mcp-cli is an A CLI inspector for the Model Context Protocol

Affected versions of this package are vulnerable to OS Command Injection via the redirectToAuthorization function in src/oauth/provider.js. Attackers can setup a MCP server with compatible OAuth authorization server endpoints and trick victims into connecting it, leading to OS command execution in vulnerable clients.

CVSS Base Scores

version 4.0
version 3.1