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:
- Highflame
ramparts0.8.1through0.8.10skill-bundle.pycscan bypass (CVE-2026-120202, CVSS 6.5 Medium):rampartsis a Rust security scanner for MCP servers and agent skill bundles (SKILL.mdplus siblingscripts/). Insrc/skills.rs,walk_bundle_subdir()skips any entry where!file_type.is_file()(ignoring nested subdirectories such asscripts/rendering/__pycache__/) and filters filenames against a text-onlySCRIPT_EXTSallowlist that omits.pycand.so. An attacker can distribute a skill bundle whose top-level.pyfile imports a PEP 552UNCHECKED_HASH.pycpayload inside a subdirectory;rampartsscans the bundle with 0 findings, while Python executes the compiled bytecode on import. MoLing< 0.5.0unauthenticated SSE and wildcard CORS RCE (CVE-2026-62863/GHSA-qpgh-hp5g-4vwp, CVSS 9.6 Critical): When theMoLingcomputer-use and browser-use MCP server runs in HTTP SSE mode (moling -l), its/sseand/messageendpoints required no authentication token and inheritedAccess-Control-Allow-Origin: *frommcp-go. Any webpage opened in the developer’s browser (or any peer able to reach the listening address) could open an MCP session and invokeCommand,FileSystem, andBrowsertools. Fixed inv0.5.0.- Bytebase
DBHub(@bytebase/dbhub)< 0.22.6read-only SQL mode bypass (CVE-2026-61789/GHSA-j656-3hf2-fvjc, CVSS 6.1 Medium): WhenDBHub(a popular database MCP server) is configured in read-only mode,execute-sql.tssplits the query string and checks each statement withisReadOnlySQL(). In< 0.22.6,scanSingleLineComment()insrc/utils/sql-parser.tstreated 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 enablemultipleStatements: true, a prompt-injected query such asSELECT 1--1;DROP TABLE userswas parsed byDBHubas a singleSELECTwith a trailing comment (--1;DROP TABLE users), while MySQL evaluated1 - (-1)and then executedDROP TABLE users. Fixed in0.22.6. praktor< 0.9.1Telegram 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): Inpraktor(a multi-agent Claude Code orchestrator), Telegram file uploads concatenated the unsanitized filename intouploads/<timestamp>_<name>and normalized it withpath.Join("/vol", filePath), allowing a filename like../../../CLAUDE.mdto overwrite the persistentCLAUDE.mdinstructions in the agent’s workspace root. In TAKO AI Agent for Okta,POST /api/auth/setupallowed unauthenticated first-run admin takeover (CVE-2026-63377) andscript_codeexecuted 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
| Ecosystem | Package / Project | CVE / GHSA | Severity | Affected versions | Fixed version | Vulnerable component |
|---|---|---|---|---|---|---|
| crates.io / Rust | ramparts (highflame-ai/ramparts) | CVE-2026-120202 | CVSS 6.5 Medium | 0.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 |
| Go | github.com/gojue/moling | CVE-2026-62863 (GHSA-qpgh-hp5g-4vwp) | CVSS 9.6 Critical | < 0.5.0 | 0.5.0 | NewMoLingServer() and sseSecurityMiddleware() in pkg/server/server.go |
| npm | @bytebase/dbhub | CVE-2026-61789 (GHSA-j656-3hf2-fvjc) | CVSS 6.1 Medium | < 0.22.6 | 0.22.6 | scanSingleLineComment() in src/utils/sql-parser.ts and executeSQL() in src/connectors/{mysql,mariadb,postgres,sqlite}/index.ts |
| Go | github.com/mtzanidakis/praktor | CVE-2026-62331 (GHSA-48v2-6jcm-fc99) | CVSS 8.2 High | < 0.9.1 | 0.9.1 | processMediaGroup() / processMessage() in internal/telegram/bot.go and WriteVolumeBytes() in internal/container/manager.go |
| Python / Docker | fctr-id/okta-ai-agent | CVE-2026-63377 (GHSA-536w-42p8-3qv9), CVE-2026-63378 (GHSA-r9q7-6784-7rc6) | CVSS 9.8 Critical / 8.8 High | < 3.0.1-beta | 3.0.1-beta | POST /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:
- Non-recursive directory skip (
!file_type.is_file()): Any subdirectory insidescripts/(such asscripts/rendering/orscripts/__pycache__/) is skipped without recursion. - Text-only extension allowlist (
SCRIPT_EXTS) andread_to_string(): Even at the top level ofscripts/,SCRIPT_EXTSexcludes.pyc,.pyo, and native shared objects, and line 953 reads accepted files withstd::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>,MoLingexposed its MCP SSE server over HTTP without authentication and allowedmcp-goto emitAccess-Control-Allow-Origin: *. Commitae07f704cbgenerates a 16-byte random hex token at startup (unless--tokenis set), enforces constant-time token comparison viasubtle.ConstantTimeCompareinsseSecurityMiddleware, and strips the wildcardAccess-Control-Allow-Originheader viacorsRemoverResponseWriter.praktor< 0.9.1(CVE-2026-62331): Ininternal/telegram/bot.go,processMediaGroup()andprocessMessage()built the container volume destination path from the raw Telegram attachment filename (fmt.Sprintf("uploads/%d_%s", time.Now().Unix(), attachment.Name)), andWriteVolumeBytes()ininternal/container/manager.goresolvedpath.Join("/vol", filePath). Becausepath.Joincollapses../across theuploads/<timestamp>_component, uploading a file named../../../CLAUDE.mdwrote/vol/CLAUDE.md(mounted at/workspace/agent/CLAUDE.mdinside the Claude Code container), injecting persistent instructions into every future agent turn. Commitc3731eeda0sanitizesattachment.Namewithpath.Base()and rejects any cleaned tar path that does not start with/vol/.- TAKO AI Agent for Okta
< 3.0.1-beta(CVE-2026-63377andCVE-2026-63378):POST /api/auth/setupallowed any unauthenticated caller to create the initial administrator account before the operator completed setup, andrealtime_hybrid_router.pyaccepted caller-supplied Python code inscript_codeand executed it after an insufficient AST/validator check while the container ran asrootbound to0.0.0.0:8001. Commit3b5ccaff84requires an in-memory one-time setup token printed to stdout, removesscript_codereplay, drops container privileges toUSER tako:tako, and binds127.0.0.1:8001by 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
- Upgrade
@bytebase/dbhubto>= 0.22.6, and configure database credentials used by MCP servers with database-enforcedSELECT-only privileges rather than relying solely on client-side--readonlyflags. - Upgrade
molingto>= v0.5.0,praktorto>= v0.9.1, andokta-ai-agentto>= v3.0.1-beta. - 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/.dllbinary, or nested subdirectory underscripts/thatramparts <= 0.8.10does 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 commit3b5ccaff84(v3.0.1-beta). - 2026-09-10:
MoLingmerges PR#48(ae07f704cb) and releasesv0.5.0;praktormerges PR#228(c3731eeda0) and releasesv0.9.1. - 2026-10-16: Issue
#154is opened onhighflame-ai/rampartsdetailing the.pycand subdirectory scan bypass insrc/skills.rs. - 2026-10-30 (
17:17to23:17 UTC): NVD publishesCVE-2026-61789(DBHub),CVE-2026-62331(praktor),CVE-2026-62863(MoLing),CVE-2026-63377, andCVE-2026-63378(okta-ai-agent). - 2026-10-31 (
18:17 UTC): NVD publishesCVE-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
- highflame-ai/ramparts issue #154 and src/skills.rs (CVE-2026-120202: .pyc bytecode substitution bypass in skill bundle scanner)
- gojue/moling commit ae07f704cb (PR #48: fix SSE CORS wildcard and add token authentication, CVE-2026-62863 / GHSA-qpgh-hp5g-4vwp)
- bytebase/dbhub commit 872bb338f7 (PR #342: MySQL/MariaDB -- comment lexer fix and READ ONLY transaction backstops, CVE-2026-61789 / GHSA-j656-3hf2-fvjc)
- mtzanidakis/praktor commit c3731eeda0 (PR #228: prevent Telegram upload filename path traversal into CLAUDE.md, CVE-2026-62331 / GHSA-48v2-6jcm-fc99)
- fctr-id/okta-ai-agent commit 3b5ccaff84 (v3.0.1-beta: ephemeral setup token and removal of script_code replay, CVE-2026-63377 and CVE-2026-63378)