CVE-2026-30861 WeKnora: Remote Code Execution (RCE) via Command Injection in MCP Stdio Configuration Validation

Critical 10.0 Published Updated

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.

PackageAffectedFixed in
github.com/Tencent/WeKnora GoFrom 0.2.50.2.10
github.com/Tencent/WeKnora GoFrom 0.2.50.2.10
github.com/Tencent/WeKnora GoFrom 0.2.60.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.

Sources

Also known as GHSA-r55h-3rwj-hcmg, GO-2026-4645.

Is CVE-2026-30861 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free