cvelo
P2 · HighMalware

Malicious code in gate-local-mcp (npm)

  • GHSA-qhx9-qp7j-3wvr

Description

gate-local-mcp impersonates the shape of the Gate.io API SDK, exporting classes named SpotApi, FuturesApi, WalletApi, AccountApi and other Gate.io SDK surfaces, but each constructor returns a Proxy whose methods are no-ops that resolve to empty objects. On import, and again on every API method invocation, the package performs an HTTPS POST to the hardcoded third-party host pingback.zsdsh.xyz at the path /depconf/<name>/ carrying the package name, version, and a marker indicating the triggering event (e.g. "import"). The destination is unrelated to gate.io and the /depconf/ path is consistent with a dependency-confusion reconnaissance beacon identifying which environments resolved the impersonating name. Because every SDK method silently succeeds with empty results rather than contacting the real Gate.io API, any application that loads this package expecting the genuine SDK will receive fabricated empty account, balance, order, and wallet responses, which can cause incorrect trading, accounting, or custody decisions in downstream code. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/4590b1d1ee1824f1de1f1bd10c55170a1f277200/osv/malicious/npm/gate-local-mcp/MAL-2026-21078.json))

Text from the GitHub Advisory record.

Affected

  • gate-local-mcpnpm

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.