Zlatanwic/Wechat-Read-MCP-in-Rust
一个用rust写的微信公众号抓取MCP,实现了浏览器抓取的反爬绕过机制
bb957d0e774fweixin-mcp-rs0.1.0 in Cargo.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
Top risks in plain words
- HIGH9 production dependencies have known vulnerabilities (worst: high).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Update its vulnerable packages
Use
rand0.9.3 or later,rmcp3.9.0 or later,rustix1.1.6 or later,tokio1.51.6 or later and 1 more. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 1 tool. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
read_weixin_articleNo tool was seen to: start other programs on the machine; read or write files; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (1: 1 tool)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
read_weixin_articletool 读取微信公众号文章内容。接收一个微信文章 URL,使用浏览器渲染页面并提取结构化内容(标题、作者、发布时间、正文)。URL 必须以 https://mp.weixin.qq.com/s/ 开头。Network
读取微信公众号文章内容。接收一个微信文章 URL,使用浏览器渲染页面并提取结构化内容(标题、作者、发布时间、正文)。URL 必须以 https://mp.weixin.qq.com/s/ 开头。
Text the model reads (1)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
read_weixin_article tool
读取微信公众号文章内容。接收一个微信文章 URL,使用浏览器渲染页面并提取结构化内容(标题、作者、发布时间、正文)。URL 必须以 https://mp.weixin.qq.com/s/ 开头。
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 1 tool handler traced
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 1 tool handler traced
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 1 tool handler traced
- Requests any addressNo tool sends a request to an address the caller supplies — 1 tool handler traced
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 1 tool handler traced
- Tools that start processesNot seen in the traced code of 1 capability; 1 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 1 capability; 1 more call code the scanner could not follow, where it may happen
- Tools that call the network1 of 1 capability call the network
Where the code is: 1 handler in 1 file at commit bb957d0e774f
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: Cargo.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies HIGH9 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionrmcp 0.16
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 1 capability; 1 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (9 in production)
rmcpcrates.io 0.16.0 HIGH 7 advisories 1.4.02.0.02.1.0+1 more
- HIGHGHSA-33f5-2c5q-wgwj CVE-2026-63127RMCP: Missing Resource Field Validation in OAuth Protected Resource Metadata Discovery
- HIGHGHSA-89vp-x53w-74fx CVE-2026-42559 GHSA-fvh2-gm75-j4j7 RUSTSEC-2026-0140 RUSTSEC-2026-0189rmcp Streamable HTTP server transport has a DNS rebinding vulnerability
- HIGHGHSA-9pj6-vhgr-3mwh CVE-2026-63128RMCP: Unauthenticated permanent session-table leak in rmcp Streamable HTTP server transport leads to remote denial-of-service
- MEDIUMGHSA-9g45-5xwm-f3wc CVE-2026-64684RMCP: Custom HTTP headers leak to cross-origin redirect targets
- MEDIUMRUSTSEC-2026-0462 GHSA-c9f9-cp8h-jcj5Unbounded response body buffering in Streamable HTTP clients
- MEDIUMRUSTSEC-2026-0189 CVE-2026-42559 GHSA-89vp-x53w-74fx GHSA-fvh2-gm75-j4j7 RUSTSEC-2026-0140DNS rebinding vulnerability in rmcp Streamable HTTP server transport
- MEDIUMGHSA-c9xm-49cp-xcr9rmcp OAuth client fetches server-controlled resource_metadata URLs
randcrates.io 0.8.5 MEDIUM 2 advisories 0.8.60.9.30.10.1
- MEDIUMRUSTSEC-2026-0097 GHSA-cq8v-f236-94qcRand is unsound with a custom logger using `rand::rng()`
- LOWGHSA-cq8v-f236-94qc RUSTSEC-2026-0097Rand is unsound with a custom logger using rand::rng()
randcrates.io 0.9.2 MEDIUM 2 advisories 0.8.60.9.30.10.1
- MEDIUMRUSTSEC-2026-0097 GHSA-cq8v-f236-94qcRand is unsound with a custom logger using `rand::rng()`
- LOWGHSA-cq8v-f236-94qc RUSTSEC-2026-0097Rand is unsound with a custom logger using rand::rng()
chronocrates.io 0.4.43 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0543chrono is unmaintained
fxhashcrates.io 0.2.1 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2025-0057fxhash - no longer maintained
pin-utilscrates.io 0.1.0 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0441`pin-utils` is unmaintained
rustixcrates.io 1.1.3 MEDIUM 1 advisory 1.1.6
- MEDIUMRUSTSEC-2026-0486 GHSA-jh2m-fhpj-3vr7xattr functions mark unwritten bytes as initialized when given a zero-length buffer
tokiocrates.io 1.49.0 MEDIUM 1 advisory 1.51.61.53.3
- MEDIUMRUSTSEC-2026-0386`AsyncFd::new` and related constructors violate I/O safety
urlcrates.io 2.5.8 MEDIUM 1 advisory 2.5.9
- MEDIUMRUSTSEC-2026-0592 GHSA-hrj5-67jp-wqp9Stack overflow in `Url::origin()` on nested `blob:` URLs
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | rmcp 0.16 |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-02-20 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | not stated |
| Created | 2026-02-19 |
| Topics | mcp-server rust-lang wechat |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.