CVE-2026-30861 WeKnora: Remote Code Execution (RCE) via Command Injection in MCP Stdio Configuration Validation
Unauthenticated attackers can execute arbitrary commands via command injection in MCP stdio configuration validation, leading to system compromise.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-30861?
CVE-2026-30861 is a critical command injection vulnerability in Tencent WeKnora, published on 7 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
WeKnora is an LLM-powered framework designed for deep document understanding and semantic retrieval. From version 0.2.5 to before version 0.2.10, an unauthenticated remote code execution (RCE) vulnerability exists in the MCP stdio configuration validation. The application allows unrestricted user registration, meaning any attacker can create an account and exploit the command injection flaw. Despite implementing a whitelist for allowed commands (npx, uvx) and blacklists for dangerous arguments and environment variables, the validation can be bypassed using the -p flag with npx node. This allows any attacker to execute arbitrary commands with the application's privileges, leading to complete system compromise. This issue has been patched in version 0.2.10.
Weakness: CWE-78
Which versions are affected by CVE-2026-30861?
3 open source packages ship an affected version, including github.com/Tencent/WeKnora. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/Tencent/WeKnora Go | From 0.2.5 | 0.2.10 |
github.com/Tencent/WeKnora Go | From 0.2.5 | 0.2.10 |
github.com/Tencent/WeKnora Go | From 0.2.6 | 0.2.10 |
Products include Tencent Weknora.
How do I fix CVE-2026-30861?
Upgrade github.com/Tencent/WeKnora to 0.2.10 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-30861 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-30861 exists.
Other vulnerabilities in Tencent WeKnora
- CVE-2026-30860 WeKnora: Remote Code Execution via SQL Injection Bypass in AI Database Query Tool
- CVE-2026-22688 WeKnora has Command Injection in MCP stdio test
- CVE-2026-30855 WeKnora: Broken Access Control in Tenant Management
- CVE-2025-11046 Tencent WeKnora test testEmbeddingModel server-side request forgery
- CVE-2026-30858 WeKnora: DNS Rebinding Vulnerability in web_fetch Tool Allows SSRF to Internal Resources
Sources
Also known as GHSA-r55h-3rwj-hcmg, GO-2026-4645.