Skip to content
Heist/ feed
Back to feed
Critical

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-30861
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 20:24 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 7 Mar 2026, 16:38 UTC

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.

osv:CVE-2026-30861
Complete source record
{
  "id": "5ebb75a0fafdfa9d2714db78310fd4f64c55f83c0bfbd6ef1cb632634ed5fd4b",
  "url": "https://osv.dev/vulnerability/CVE-2026-30861",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "WeKnora: Remote Code Execution (RCE) via Command Injection in MCP Stdio Configuration Validation",
    "summary": "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.",
    "evidence": "osv:CVE-2026-30861",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-30861",
      "aliases": [
        "CVE-2026-30861",
        "GHSA-r55h-3rwj-hcmg",
        "GO-2026-4645"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/tencent/weknora",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2784207de6f6203e6fe54680536b92a908c26c7c"
                },
                {
                  "fixed": "c399665a42e14c60363f5c85798cdbe5728650d8"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.2.5"
                      },
                      {
                        "fixed": "0.2.10"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:tencent:weknora:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.2.5"
                      },
                      {
                        "fixed": "0.2.10"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.2.9",
            "v0.2.8",
            "v0.2.7",
            "v0.2.6",
            "v0.2.5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-30861.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.065969675Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30861.json",
        "https://github.com/Tencent/WeKnora/security/advisories/GHSA-r55h-3rwj-hcmg",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-30861"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-78"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30861.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-30861",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506646,
  "published_at": "2026-03-07T16:38:38.063+00:00"
}