critical

CVE

CVE-2026-120202, CVE-2026-62863, CVE-2026-61789, CVE-2026-62331, CVE-2026-63377, CVE-2026-63378

CWE

CWE-436, CWE-306, CWE-942, CWE-89, CWE-22, CWE-94

Affected Surface

  • crates.io / Rust `ramparts` (`highflame-ai/ramparts`) versions `0.8.1` through `0.8.10` (`CVE-2026-120202`, CVSS 6.5 Medium)
  • Go `moling` (`github.com/gojue/moling`) versions `< 0.5.0` (`CVE-2026-62863` / `GHSA-qpgh-hp5g-4vwp`, CVSS 9.6 Critical)
  • npm `@bytebase/dbhub` (`bytebase/dbhub`) versions `< 0.22.6` (`CVE-2026-61789` / `GHSA-j656-3hf2-fvjc`, CVSS 6.1 Medium)
  • Go `praktor` (`github.com/mtzanidakis/praktor`) versions `< 0.9.1` (`CVE-2026-62331` / `GHSA-48v2-6jcm-fc99`, CVSS 8.2 High)
  • TAKO AI Agent for Okta (`fctr-id/okta-ai-agent`) versions `< 3.0.1-beta` (`CVE-2026-63377` / `GHSA-536w-42p8-3qv9`, CVSS 9.8 Critical; and `CVE-2026-63378` / `GHSA-r9q7-6784-7rc6`, CVSS 8.8 High)

TL;DR

Between 17:17 UTC on 30 October and 18:17 UTC on 31 October 2026, NVD published six vulnerabilities targeting the Model Context Protocol (MCP) and AI agent tooling stack:

  1. Highflame ramparts 0.8.1 through 0.8.10 skill-bundle .pyc scan bypass (CVE-2026-120202, CVSS 6.5 Medium): ramparts is a Rust security scanner for MCP servers and agent skill bundles (SKILL.md plus sibling scripts/). In src/skills.rs, walk_bundle_subdir() skips any entry where !file_type.is_file() (ignoring nested subdirectories such as scripts/rendering/__pycache__/) and filters filenames against a text-only SCRIPT_EXTS allowlist that omits .pyc and .so. An attacker can distribute a skill bundle whose top-level .py file imports a PEP 552 UNCHECKED_HASH .pyc payload inside a subdirectory; ramparts scans the bundle with 0 findings, while Python executes the compiled bytecode on import.
  2. MoLing < 0.5.0 unauthenticated SSE and wildcard CORS RCE (CVE-2026-62863 / GHSA-qpgh-hp5g-4vwp, CVSS 9.6 Critical): When the MoLing computer-use and browser-use MCP server runs in HTTP SSE mode (moling -l), its /sse and /message endpoints required no authentication token and inherited Access-Control-Allow-Origin: * from mcp-go. Any webpage opened in the developer’s browser (or any peer able to reach the listening address) could open an MCP session and invoke Command, FileSystem, and Browser tools. Fixed in v0.5.0.
  3. Bytebase DBHub (@bytebase/dbhub) < 0.22.6 read-only SQL mode bypass (CVE-2026-61789 / GHSA-j656-3hf2-fvjc, CVSS 6.1 Medium): When DBHub (a popular database MCP server) is configured in read-only mode, execute-sql.ts splits the query string and checks each statement with isReadOnlySQL(). In < 0.22.6, scanSingleLineComment() in src/utils/sql-parser.ts treated every -- as a comment through end-of-line, whereas MySQL and MariaDB only treat -- as a comment when followed by whitespace, a control character, or EOL. Because the MySQL and MariaDB connectors enable multipleStatements: true, a prompt-injected query such as SELECT 1--1;DROP TABLE users was parsed by DBHub as a single SELECT with a trailing comment (--1;DROP TABLE users), while MySQL evaluated 1 - (-1) and then executed DROP TABLE users. Fixed in 0.22.6.
  4. praktor < 0.9.1 Telegram upload traversal into /workspace/agent/CLAUDE.md (CVE-2026-62331 / GHSA-48v2-6jcm-fc99, CVSS 8.2 High) and TAKO AI Agent for Okta < 3.0.1-beta (CVE-2026-63377, CVSS 9.8 Critical; CVE-2026-63378, CVSS 8.8 High): In praktor (a multi-agent Claude Code orchestrator), Telegram file uploads concatenated the unsanitized filename into uploads/<timestamp>_<name> and normalized it with path.Join("/vol", filePath), allowing a filename like ../../../CLAUDE.md to overwrite the persistent CLAUDE.md instructions in the agent’s workspace root. In TAKO AI Agent for Okta, POST /api/auth/setup allowed unauthenticated first-run admin takeover (CVE-2026-63377) and script_code executed caller-supplied Python (CVE-2026-63378).

What to do now: Upgrade @bytebase/dbhub to >= 0.22.6, moling to >= v0.5.0, praktor to >= v0.9.1, and okta-ai-agent to >= v3.0.1-beta. If you use ramparts (<= 0.8.10) to gate third-party Claude or MCP skill bundles in CI, reject any skill bundle containing __pycache__/, .pyc, .pyo, .so, .pyd, or .dll files before running ramparts.

Affected packages and projects

EcosystemPackage / ProjectCVE / GHSASeverityAffected versionsFixed versionVulnerable component
crates.io / Rustramparts (highflame-ai/ramparts)CVE-2026-120202CVSS 6.5 Medium0.8.1 through 0.8.10 (latest release)Unpatched in 0.8.10 (issue #154 open; block .pyc / nested dirs in CI)walk_bundle_subdir() and SCRIPT_EXTS in src/skills.rs
Gogithub.com/gojue/molingCVE-2026-62863 (GHSA-qpgh-hp5g-4vwp)CVSS 9.6 Critical< 0.5.00.5.0NewMoLingServer() and sseSecurityMiddleware() in pkg/server/server.go
npm@bytebase/dbhubCVE-2026-61789 (GHSA-j656-3hf2-fvjc)CVSS 6.1 Medium< 0.22.60.22.6scanSingleLineComment() in src/utils/sql-parser.ts and executeSQL() in src/connectors/{mysql,mariadb,postgres,sqlite}/index.ts
Gogithub.com/mtzanidakis/praktorCVE-2026-62331 (GHSA-48v2-6jcm-fc99)CVSS 8.2 High< 0.9.10.9.1processMediaGroup() / processMessage() in internal/telegram/bot.go and WriteVolumeBytes() in internal/container/manager.go
Python / Dockerfctr-id/okta-ai-agentCVE-2026-63377 (GHSA-536w-42p8-3qv9), CVE-2026-63378 (GHSA-r9q7-6784-7rc6)CVSS 9.8 Critical / 8.8 High< 3.0.1-beta3.0.1-betaPOST /api/auth/setup in src/api/routers/auth.py and script_code execution in realtime_hybrid_router.py

Technical analysis

1. Highflame ramparts 0.8.10: how PEP 552 .pyc files and nested directories evade skill-bundle scanning (CVE-2026-120202)

When Highflame ramparts scans an AI agent skill directory (containing a SKILL.md file alongside scripts/ and references/), collect_bundle_siblings() in src/skills.rs calls walk_bundle_subdir() to enumerate sibling scripts and feed them into the YARA and LLM analysis pipeline:

// src/skills.rs lines 860-866 and 925-937 (highflame-ai/ramparts v0.8.10)
const SCRIPT_EXTS: &[&str] = &[
    "py", "sh", "bash", "zsh", "js", "mjs", "cjs", "ts", "rb", "pl", "ps1",
];
...
        let Ok(file_type) = entry.file_type() else {
            continue;
        };
        if file_type.is_symlink() || !file_type.is_file() {
            continue;
        }
        let entry_path = entry.path();
        let Some(file_name) = entry_path.file_name().and_then(|n| n.to_str()) else {
            continue;
        };
        if !accept(file_name) {
            continue;
        }

As documented in issue #154, this walker has two blind spots that combine into a deterministic scan bypass:

  1. Non-recursive directory skip (!file_type.is_file()): Any subdirectory inside scripts/ (such as scripts/rendering/ or scripts/__pycache__/) is skipped without recursion.
  2. Text-only extension allowlist (SCRIPT_EXTS) and read_to_string(): Even at the top level of scripts/, SCRIPT_EXTS excludes .pyc, .pyo, and native shared objects, and line 953 reads accepted files with std::fs::read_to_string(&entry_path), which rejects binary files as invalid UTF-8.

Under PEP 552 (Deterministic .pyc files, supported since Python 3.7), a .pyc header with bit 0 of the bitfield set (0b01, HASH_BASED + UNCHECKED_HASH) instructs CPython to load and execute the cached bytecode in __pycache__/<module>.cpython-312.pyc without checking whether the hash or timestamp matches the .py source file on disk. An attacker can ship a clean, harmless scripts/rendering/output.py alongside a backdoored scripts/rendering/__pycache__/output.cpython-312.pyc (or omit output.py entirely for a sourceless import), and ramparts will scan only the top-level .py file and report zero findings.

2. Bytebase DBHub 0.22.6 (CVE-2026-61789): MySQL --1 comment differential breaks --readonly mode

Teams connect Bytebase DBHub (@bytebase/dbhub) to production databases in read-only mode so LLM coding assistants can inspect schemas and run SELECT queries without modifying data. Before executing a tool call in read-only mode, DBHub splits the SQL string using splitSQLStatements(sql, connectorType) and verifies that every statement passes isReadOnlySQL().

In DBHub < 0.22.6, scanSingleLineComment() in src/utils/sql-parser.ts treated any -- outside a string literal as the start of a comment through \n. However, MySQL and MariaDB deviate from ANSI SQL: their lexer (my_isspace() || my_iscntrl()) requires -- to be followed by whitespace, a control character (<= 0x20 or 0x7F), or end-of-input. When -- is followed immediately by a digit or identifier (such as SELECT 1--1;DROP TABLE users), MySQL parses 1--1 as the arithmetic expression 1 - (-1) and then executes DROP TABLE users as a second statement on the same connection (multipleStatements: true).

Commit 872bb338f7 (v0.22.6) fixes the comment lexer for mysql and mariadb and adds database-engine read-only transaction backstops across all four connectors:

--- a/src/utils/sql-parser.ts
+++ b/src/utils/sql-parser.ts
@@ -19,6 +19,29 @@ function scanSingleLineComment(sql: string, i: number): SQLToken | null {
   return { type: TokenType.Comment, end: j };
 }
 
+function scanSingleLineCommentMySQL(sql: string, i: number): SQLToken | null {
+  if (sql[i] !== "-" || sql[i + 1] !== "-") { return null; }
+  const next = sql[i + 2];
+  // Comment trigger = whitespace, control char, or EOL. MySQL's lexer uses
+  // my_isspace() || my_iscntrl(), so besides bytes <= 0x20 this also includes
+  // ASCII DEL (0x7F). Anything else means the dashes are minus operators.
+  if (next !== undefined && next.charCodeAt(0) > 0x20 && next.charCodeAt(0) !== 0x7f) {
+    return null;
+  }
+  let j = i;
+  while (j < sql.length && sql[j] !== "\n") { j++; }
+  return { type: TokenType.Comment, end: j };
+}

In addition to fixing the parser (which is required to stop DDL statements like DROP TABLE that trigger an implicit commit in MySQL/MariaDB), v0.22.6 wraps read-only queries in START TRANSACTION READ ONLY on MySQL and MariaDB, BEGIN READ ONLY on PostgreSQL (blocking function-based writes such as SELECT setval(...)), and PRAGMA query_only = ON on SQLite (while also blocking setter pragmas such as PRAGMA user_version(1) in allowed-keywords.ts).

3. MoLing 0.5.0 (CVE-2026-62863), praktor 0.9.1 (CVE-2026-62331), and TAKO Okta AI Agent 3.0.1-beta (CVE-2026-63377, CVE-2026-63378)

  • MoLing < 0.5.0 (CVE-2026-62863): When started with -l <addr>, MoLing exposed its MCP SSE server over HTTP without authentication and allowed mcp-go to emit Access-Control-Allow-Origin: *. Commit ae07f704cb generates a 16-byte random hex token at startup (unless --token is set), enforces constant-time token comparison via subtle.ConstantTimeCompare in sseSecurityMiddleware, and strips the wildcard Access-Control-Allow-Origin header via corsRemoverResponseWriter.
  • praktor < 0.9.1 (CVE-2026-62331): In internal/telegram/bot.go, processMediaGroup() and processMessage() built the container volume destination path from the raw Telegram attachment filename (fmt.Sprintf("uploads/%d_%s", time.Now().Unix(), attachment.Name)), and WriteVolumeBytes() in internal/container/manager.go resolved path.Join("/vol", filePath). Because path.Join collapses ../ across the uploads/<timestamp>_ component, uploading a file named ../../../CLAUDE.md wrote /vol/CLAUDE.md (mounted at /workspace/agent/CLAUDE.md inside the Claude Code container), injecting persistent instructions into every future agent turn. Commit c3731eeda0 sanitizes attachment.Name with path.Base() and rejects any cleaned tar path that does not start with /vol/.
  • TAKO AI Agent for Okta < 3.0.1-beta (CVE-2026-63377 and CVE-2026-63378): POST /api/auth/setup allowed any unauthenticated caller to create the initial administrator account before the operator completed setup, and realtime_hybrid_router.py accepted caller-supplied Python code in script_code and executed it after an insufficient AST/validator check while the container ran as root bound to 0.0.0.0:8001. Commit 3b5ccaff84 requires an in-memory one-time setup token printed to stdout, removes script_code replay, drops container privileges to USER tako:tako, and binds 127.0.0.1:8001 by default.

Detection and remediation

# 1. Check npm, Go, and Cargo lockfiles and global installs for affected MCP / agent tools
npm ls @bytebase/dbhub -g 2>/dev/null || npm ls @bytebase/dbhub 2>/dev/null || true
rg -n '@bytebase/dbhub|gojue/moling|mtzanidakis/praktor|highflame-ai/ramparts|ramparts' \
  package.json package-lock.json pnpm-lock.yaml go.mod Cargo.lock ~/.cursor/mcp.json ~/.claude.json 2>/dev/null

# 2. Audit AI agent skill bundles (.claude/skills, .cursor/skills) for hidden .pyc or nested scripts
find . ~/.claude/skills ~/.cursor/skills -type f \( -name '*.pyc' -o -name '*.pyo' -o -name '*.so' -o -name '*.pyd' \) 2>/dev/null || true

# 3. Check praktor agent Docker volumes for unexpected CLAUDE.md files outside uploads/
docker ps --format '{{.Names}}' 2>/dev/null | grep -i praktor || true
  1. Upgrade @bytebase/dbhub to >= 0.22.6, and configure database credentials used by MCP servers with database-enforced SELECT-only privileges rather than relying solely on client-side --readonly flags.
  2. Upgrade moling to >= v0.5.0, praktor to >= v0.9.1, and okta-ai-agent to >= v3.0.1-beta.
  3. Harden skill-bundle CI pipelines using ramparts: Add a pre-scan step that fails the build if a skill bundle contains any __pycache__ directory, .pyc/.pyo/.so/.dll binary, or nested subdirectory under scripts/ that ramparts <= 0.8.10 does not traverse.

Timeline

  • 2026-08-19 to 2026-09-09: Bytebase merges commit 872bb338f7 (PR #342) and releases @bytebase/dbhub@0.22.6; TAKO AI Agent for Okta merges commit 3b5ccaff84 (v3.0.1-beta).
  • 2026-09-10: MoLing merges PR #48 (ae07f704cb) and releases v0.5.0; praktor merges PR #228 (c3731eeda0) and releases v0.9.1.
  • 2026-10-16: Issue #154 is opened on highflame-ai/ramparts detailing the .pyc and subdirectory scan bypass in src/skills.rs.
  • 2026-10-30 (17:17 to 23:17 UTC): NVD publishes CVE-2026-61789 (DBHub), CVE-2026-62331 (praktor), CVE-2026-62863 (MoLing), CVE-2026-63377, and CVE-2026-63378 (okta-ai-agent).
  • 2026-10-31 (18:17 UTC): NVD publishes CVE-2026-120202 (ramparts).

From research to remediation

Check whether this pattern exists in your codebase

Turn this research into a remediation workflow. Scan dependencies and package manifests for similar supply-chain risk, then prioritize fixes with reachability context.

References