{"id":"CVE-2026-30861","published":"2026-03-07T16:38:38Z","modified":"2026-03-09T18:24:00Z","title":"WeKnora: Remote Code Execution (RCE) via Command Injection in MCP Stdio Configuration Validation","vendor":"Tencent","product":"WeKnora","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0286,"percentile":0.87467,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/Tencent/WeKnora/security/advisories/GHSA-r55h-3rwj-hcmg","tags":["x_refsource_CONFIRM"]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":17.49},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"tencent","affectedVersions":[{"vendor":"Tencent","product":"WeKnora","versions":[">= 0.2.5, < 0.2.10"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-03-09T17:58:51.217526Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/Tencent/WeKnora","vulnerableRanges":[">=0.2.5, <0.2.10",">=0.2.6, <0.2.10"],"patched":["0.2.10"],"from":["GHSA-r55h-3rwj-hcmg","GO-2026-4645"],"provenance":"source"}],"summary":{"text":"A command injection flaw in WeKnora's (Tencent) MCP stdio configuration validation lets the application's MCP stdio command whitelist and argument/environment blacklists be bypassed by using the -p flag with npx node. An attacker who can reach the application over the network and register an account (registration is unrestricted, so no pre-existing credentials are needed and no user interaction is required) can execute arbitrary operating system commands with the application's privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:37:37Z"},"euvd":{"id":"EUVD-2026-10184","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tencent-weknora-cve-2026-22688","parents":[{"from":"CVE-2026-22688","to":"CVE-2026-30861","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/Tencent/WeKnora","fromFixed":"0.2.5","toFixed":"0.2.10","daysApart":56},{"kind":"same-code","provenance":"machine","files":["internal/application/service/mcp_service.go","internal/mcp/client.go"],"commits":["https://github.com/Tencent/WeKnora/commit/f7900a5e9a18c99d25cec9589ead9e4e59ce04bb","https://github.com/Tencent/WeKnora/commit/57d6fea8bc265ad28b385e0158957c870cff4b50"],"basis":"shared function","functions":["NewMCPClient","NewMCPServiceService","UpdateMCPService"]}]}],"packageHistory":[{"cve":"CVE-2026-22687","published":"2026-01-10","fixed":"0.2.5","kev":false},{"cve":"CVE-2026-22688","published":"2026-01-10","fixed":"0.2.5","kev":false},{"cve":"CVE-2026-30861","published":"2026-03-07","fixed":"0.2.10","kev":false},{"cve":"CVE-2026-30247","published":"2026-03-07","fixed":"0.2.12","kev":false,"link":{"from":"CVE-2026-30861","to":"CVE-2026-30247","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/Tencent/WeKnora","fromFixed":"0.2.10","toFixed":"0.2.12","daysApart":0}]}},{"cve":"CVE-2026-30859","published":"2026-03-07","fixed":"0.2.12","kev":false,"link":{"from":"CVE-2026-30861","to":"CVE-2026-30859","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/Tencent/WeKnora","fromFixed":"0.2.10","toFixed":"0.2.12","daysApart":0}]}},{"cve":"CVE-2026-30860","published":"2026-03-07","fixed":"0.2.12","kev":false,"link":{"from":"CVE-2026-30861","to":"CVE-2026-30860","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/Tencent/WeKnora","fromFixed":"0.2.10","toFixed":"0.2.12","daysApart":0}]}}],"package":"Go:github.com/Tencent/WeKnora"}}