critical

CVE

CVE-2026-120322, CVE-2026-120315, CVE-2026-120311, CVE-2026-120312, CVE-2026-120313, CVE-2026-120314, CVE-2026-120323, CVE-2026-120325

CWE

CWE-22, CWE-23, CWE-73, CWE-306, CWE-200, CWE-285

Affected Surface

  • LobeHub Chat (`lobehub/lobehub`, `@lobehub/chat`) versions `>= 1.84.26, < 2.1.49` (`CVE-2026-120315` / `GHSA-2g9j-v25c-4j97`, CVSS 8.8 High, fixed in `2.1.49`)
  • npm `network-ai` (`Jovancoding/Network-AI`) versions `< 5.15.5` (`CVE-2026-120311` / `GHSA-v64j-mc7x-c7x7` CVSS 8.8 High, `CVE-2026-120312` / `GHSA-mfxv-jg44-xj48` CVSS 8.8 High, `CVE-2026-120313` / `GHSA-5mm5-4mh4-6gm6` CVSS 7.5 High, and `CVE-2026-120314` / `GHSA-qvf5-9prv-7r9c` CVSS 7.3 High, fixed in `5.15.5`)
  • Termix (`Termix-SSH/Termix`) versions `<= 2.9.2` (`CVE-2026-120322`, CVSS 9.9 Critical in NVD / 8.8 High in researcher advisory, fixed in core `v26.10.0` and standalone File Manager plugin `v1.0.0`)
  • MCPHub (`samanhappy/mcphub`) versions `<= 1.0.45` and `<= 1.1.7` (`CVE-2026-120323`, CVSS 7.3 High / 4.3 Medium, fixed in `v1.1.8`)
  • npm `knip` (`webpro-nl/knip`) versions `<= 6.44.0` (`CVE-2026-120325`, CVSS 8.3 High / 6.3 Medium)

TL;DR

Early on 2 November 2026 (02:18 to 03:17 UTC), NVD and the GitHub Advisory Database published eight security advisories across five widely used AI-agent, MCP, SSH management, and JavaScript build-tooling projects:

  1. LobeHub Chat 1.84.26 before 2.1.49 TempFileManager.writeTempFile() path traversal to RCE (CVE-2026-120315 / GHSA-2g9j-v25c-4j97, CVSS 8.8 High): In src/server/utils/tempFileManager.ts, writeTempFile(data, name) built the destination path with join(this.tempDir, name) without stripping directory components from name. An authenticated user could call the file.createFile tRPC mutation with a traversal filename such as ../../app/startServer.js and trigger server-side document parsing, causing LobeHub to write the attacker’s file bytes over application files on disk. Fixed in v2.1.49 (commit b268f44f06).
  2. Network-AI < 5.15.5 multi-agent orchestrator path traversals and unauthenticated A2AServer task execution (CVE-2026-120311, CVE-2026-120312, CVE-2026-120313, and CVE-2026-120314, CVSS 8.8 to 7.3 High): In network-ai (a TypeScript/MCP multi-agent coordination layer for Claude Code, LangChain, CrewAI, and AutoGen), FileJobStore (CVE-2026-120311 / GHSA-v64j-mc7x-c7x7) and AgentVCR (CVE-2026-120312 / GHSA-mfxv-jg44-xj48) concatenated caller-supplied id or cassette name values with .json via path.join(), allowing ../ sequences to read, overwrite, or delete arbitrary .json files (including AuthGuardian trust policies and grant tokens). In addition, InputSanitizer.sanitizePath() (CVE-2026-120313 / GHSA-5mm5-4mh4-6gm6) checked !resolvedPath.startsWith(resolvedBase) without a path separator boundary (accepting sibling directories such as /data/project-evil for base /data/project), and A2AServer, ApprovalInbox, and SwarmTransportServer (CVE-2026-120314 / GHSA-qvf5-9prv-7r9c) left JSON-RPC task routes (tasks/send, tasks/get, tasks/cancel) unauthenticated whenever no secret option was passed. Fixed in network-ai 5.15.5.
  3. Termix <= 2.9.2 SOCKS5 loopback spoofing in /plugin-api/file-manager/transferToHost (CVE-2026-120322, CVSS 9.9 Critical): In Termix’s File Manager plugin, transferToHost included a local-transfer shortcut that wrote files directly to the Termix server’s own filesystem (fs.createWriteStream(destPath)) whenever isLocalSshEndpoint() saw that the SSH session’s recorded ip was 127.0.0.1 or localhost. Because the recorded ip was taken verbatim from the user’s POST /plugin-api/file-manager/connect body even when the SSH session was routed through an attacker-controlled socks5 proxy, any authenticated user could connect to their own SSH server via SOCKS5 while declaring ip: "127.0.0.1", and then call transferToHost to overwrite DATA_DIR/.env (JWT_SECRET) or drop an unsigned .tmxplug plugin on the Termix host. Fixed in Termix v26.10.0 (and standalone File Manager plugin v1.0.0), which removes the local shortcut and writes all transfers over SFTP.
  4. MCPHub < 1.1.8 OpenAPI passthroughHeaders credential exfiltration (CVE-2026-120323, CVSS 7.3 High / 4.3 Medium) and Knip <= 6.44.0 knip --fix workspace path traversal (CVE-2026-120325, CVSS 8.3 High / 6.3 Medium): In samanhappy/mcphub, isPrivilegedServerConfig() restricted stdio MCP servers to admins, but allowed non-admin users to create openapi or streamable-http MCP servers with passthroughHeaders: ["Authorization", "Cookie", "X-Api-Key"] pointing to an external URL. Whenever an administrator invoked a tool on that server, OpenAPIClient forwarded the administrator’s platform Authorization and Cookie headers verbatim to the attacker’s server (fixed in v1.1.8 via commit 040f7b9ae0). In webpro-nl/knip, a malicious repository declaring a workspaces entry such as "../victim-dir" in package.json or knip.json caused knip --fix (IssueFixer.ts) to delete or overwrite .ts/.js files outside the repository root.

What to do now: Upgrade LobeHub Chat deployments to >= 2.1.49, network-ai to >= 5.15.5 (5.17.1 is current on npm), Termix to >= v26.10.0 (v26.11.0 is current), and MCPHub to >= v1.1.8, and never run knip --fix on untrusted repositories without inspecting workspaces in package.json and knip.json.

Affected packages and projects

EcosystemPackage / ProjectCVE / GHSASeverityAffected versionsFixed versionVulnerable component
Docker / npmLobeHub Chat (lobehub/lobehub)CVE-2026-120315 (GHSA-2g9j-v25c-4j97)CVSS 8.8 High>= 1.84.26, < 2.1.492.1.49TempFileManager.writeTempFile() in src/server/utils/tempFileManager.ts
npmnetwork-ai (Jovancoding/Network-AI)CVE-2026-120311 (GHSA-v64j-mc7x-c7x7), CVE-2026-120312 (GHSA-mfxv-jg44-xj48)CVSS 8.8 High>= 5.13.4, < 5.15.55.15.5 (5.17.1)FileJobStore (lib/job-queue.ts) and AgentVCR.load() / save() (lib/agent-vcr.ts)
npmnetwork-aiCVE-2026-120313 (GHSA-5mm5-4mh4-6gm6), CVE-2026-120314 (GHSA-qvf5-9prv-7r9c)CVSS 7.5 / 7.3 High< 5.15.5 (120314 from 5.14.0)5.15.5 (5.17.1)InputSanitizer.sanitizePath() (security.ts) and A2AServer (lib/a2a-server.ts)
Docker / Node.jsTermix (Termix-SSH/Termix)CVE-2026-120322CVSS 9.9 Critical (NVD) / 8.8 High<= 2.9.2Core v26.10.0 (v26.11.0), File Manager plugin v1.0.0/plugin-api/file-manager/transferToHost (isLocalSshEndpoint + pipelinedSftpToLocalFile)
Docker / Node.jsMCPHub (samanhappy/mcphub)CVE-2026-120323CVSS 7.3 High / 4.3 Medium<= 1.0.45, <= 1.1.71.1.8src/clients/openapi.ts, src/services/mcpService.ts, and src/utils/passthroughHeaders.ts
npmknip (webpro-nl/knip)CVE-2026-120325CVSS 8.3 High / 6.3 Medium<= 6.44.0Inspect workspaces before --fixConfigurationChief.ts (mapWorkspaces) and IssueFixer.ts (rm / writeFile)

Technical analysis

1. LobeHub Chat 2.1.49: TempFileManager.writeTempFile() path traversal to server file overwrite (CVE-2026-120315)

When a user triggers document chunking or file parsing in LobeHub Chat, the server downloads the stored blob and writes it to a temporary directory via TempFileManager.writeTempFile(data, name) using the file name stored on the user’s file record (created via the file.createFile tRPC endpoint).

In versions 1.84.26 before 2.1.49, src/server/utils/tempFileManager.ts joined this.tempDir (for example /tmp/lobehub-xyz) and name directly with node:path’s join():

--- a/src/server/utils/tempFileManager.ts
+++ b/src/server/utils/tempFileManager.ts
@@ -1,6 +1,6 @@
 import { existsSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs';
 import { tmpdir } from 'node:os';
-import { join } from 'node:path';
+import { basename, join, resolve } from 'node:path';
 
 export class TempFileManager {
   ...
   async writeTempFile(data: Uint8Array, name: string): Promise<string> {
-    const filePath = join(this.tempDir, name);
+    // Sanitize filename to prevent path traversal (GHSA-2g9j-v25c-4j97)
+    const safeName = basename(name);
+    const filePath = resolve(this.tempDir, safeName);
 
     try {
       writeFileSync(filePath, data);

Because file.createFile did not strip ../ or ..\ segments from name, an authenticated user could create a file record named ../../app/startServer.js (or ../../.env) and invoke document parsing to overwrite server files with arbitrary contents. Commit b268f44f06 (PR #13684, shipped in v2.1.49) strips all directory components with basename(name) before calling resolve(this.tempDir, safeName).

2. Network-AI 5.15.5: InputSanitizer.sanitizePath() sibling-prefix bypass, FileJobStore / AgentVCR traversal, and A2AServer default-open tasks (CVE-2026-120311 to CVE-2026-120314)

In Jovancoding/Network-AI prior to 5.15.5 (release v5.15.5), four vulnerabilities affected the orchestrator’s filesystem stores and HTTP agent endpoints:

  1. Unanchored startsWith in InputSanitizer.sanitizePath() (CVE-2026-120313 / GHSA-5mm5-4mh4-6gm6): sanitizePath(inputPath, basePath) normalized both paths and checked if (!resolvedPath.startsWith(resolvedBase)). Because normalize('/data/project') has no trailing slash, /data/project-evil/secrets.json starts with /data/project and passed validation. Version 5.15.5 replaces the string prefix check with const rel = relative(resolvedBase, resolvedPath) and rejects any path where rel === '..' || rel.startsWith('..' + sep) || isAbsolute(rel) or where either input contains a NUL byte (\0).
  2. Arbitrary .json read/write/delete in FileJobStore and AgentVCR (CVE-2026-120311 / GHSA-v64j-mc7x-c7x7 and CVE-2026-120312 / GHSA-mfxv-jg44-xj48): Both FileJobStore (join(this.dir, id + '.json') in lib/job-queue.ts) and AgentVCR (join(this.config.cassettePath, name + '.json') in lib/agent-vcr.ts) built file paths without calling InputSanitizer. Passing ../../data/auth-guardian-policy or ../../data/grants allowed an attacker to read or overwrite AuthGuardian trust configuration or delete .json files across the filesystem. Version 5.15.5 routes both stores through a new InputSanitizer.safeChildPath(baseDir, name, '.json') helper that enforces /^[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}$/, rejects .., and verifies dirname(target) === base:
    // security.ts in network-ai 5.15.5
    static safeChildPath(baseDir: string, name: string, extension = ''): string {
      if (typeof name !== 'string' || !SAFE_CHILD_NAME.test(name) || name.includes('..')) {
        const shown = typeof name === 'string' ? JSON.stringify(name.slice(0, 64)) : typeof name;
        throw new SecurityError(`Invalid name: ${shown}`, 'INVALID_NAME');
      }
      const base = resolve(baseDir);
      const target = resolve(base, name + extension);
      if (dirname(target) !== base) {
        throw new SecurityError('Path traversal attempt detected', 'PATH_TRAVERSAL');
      }
      return target;
    }
  3. Unauthenticated A2AServer, ApprovalInbox, and SwarmTransportServer (CVE-2026-120314 / GHSA-qvf5-9prv-7r9c): In lib/a2a-server.ts, the secret Bearer token option was optional by default; when omitted, tasks/send, tasks/get, and tasks/cancel accepted unauthenticated JSON-RPC requests. Version 5.15.5 makes secret mandatory on A2AServer, ApprovalInbox (HTTP), and SwarmTransportServer unless allowUnauthenticated: true is explicitly passed, refuses to bind unauthenticated servers to non-loopback addresses, and verifies Bearer tokens in constant time with timingSafeEqual.

3. MCPHub 1.1.8 (CVE-2026-120323) and Termix 26.10.0 (CVE-2026-120322)

In MCPHub (samanhappy/mcphub <= 1.1.7), isPrivilegedServerConfig() in src/utils/serverConfigValidation.ts blocked non-admin users from registering stdio MCP servers (which execute local shell commands) or setting oauth.allowInsecureTokenEndpoint = true, but allowed non-admins to create openapi and streamable-http MCP servers configured with passthroughHeaders:

--- a/src/utils/passthroughHeaders.ts
+++ b/src/utils/passthroughHeaders.ts
@@ -0,0 +1,20 @@
+const sensitiveHeaders = new Set([
+  'authorization',
+  'proxy-authorization',
+  'cookie',
+  'x-auth-token',
+  'x-api-key',
+]);
+
+export const isSafePassthroughHeader = (name: string): boolean => {
+  const normalized = name.trim().toLowerCase();
+  // Server owners must never forward the invoking user's platform credentials.
+  return (
+    Boolean(normalized) &&
+    !sensitiveHeaders.has(normalized) &&
+    normalized !== resolveBearerAuthHeaderName(getCachedSystemConfig()).toLowerCase()
+  );
+};

Before commit 040f7b9ae0 (v1.1.8), a low-privilege user could register an OpenAPI MCP server pointing at an attacker-controlled URL with openapi.passthroughHeaders: ["Authorization", "Cookie", "X-Api-Key"]. When an admin called any tool on that server, collectPassthroughHeaders() and OpenAPIClient copied the admin’s own MCPHub Authorization JWT, session Cookie, or custom bearer header into the outbound HTTP request to the attacker’s host. Version 1.1.8 both restricts passthroughHeaders server creation/modification to admins and strips authorization, proxy-authorization, cookie, x-auth-token, x-api-key, and the configured bearerAuthHeaderName in isSafePassthroughHeader().

In Termix (Termix-SSH/Termix <= 2.9.2, CVE-2026-120322), the File Manager plugin’s /plugin-api/file-manager/transferToHost route checked whether the destination SSH session was “the local Termix host” by passing the session’s recorded ip string (127.0.0.1, localhost, ::1) to isLocalSshEndpoint(). However, /plugin-api/file-manager/connect allowed the caller to specify both ip: "127.0.0.1" and an external socks5 proxy (useSocks5: true, socks5Host: "<attacker-ip>"). The SSH connection was tunneled through the attacker’s SOCKS5 proxy to the attacker’s own SSH server, while Termix marked the session as local and executed pipelinedSftpToLocalFile() -> sftp.fastGet(remotePath, destPath) directly onto the Termix container/host filesystem, letting any authenticated user overwrite DATA_DIR/.env or plant a startup .tmxplug archive. Core v26.10.0 and standalone File Manager plugin v1.0.0 remove the local filesystem shortcut so transfers always write over SFTP.

Detection and remediation

# 1. Check LobeHub, Network-AI, MCPHub, Termix, and Knip versions across manifests and containers
rg -n '"(@lobehub/chat|network-ai|knip)"' package.json package-lock.json pnpm-lock.yaml yarn.lock 2>/dev/null
docker ps --format '{{.Image}}' 2>/dev/null | grep -iE 'lobe|mcphub|termix' || true

# 2. Audit MCPHub mcp_settings.json for non-admin servers configured with passthroughHeaders
rg -n 'passthroughHeaders' mcp_settings.json config/ data/ 2>/dev/null

# 3. Before running `knip --fix` on an untrusted repository, inspect workspaces in package.json and knip.json
rg -n '"workspaces"' package.json knip.json knip.jsonc 2>/dev/null
  1. Upgrade LobeHub Chat to >= 2.1.49 and Network-AI to >= 5.15.5 (5.17.1): Note that network-ai 5.15.5 introduces a breaking security change: constructing A2AServer, ApprovalInbox (HTTP), or SwarmTransportServer without a secret now throws an error unless allowUnauthenticated: true is explicitly configured on a loopback bind.
  2. Upgrade MCPHub to >= v1.1.8 and audit registered servers: Check mcp_settings.json (or database server configs) for any openapi or streamable-http server that listed Authorization, Cookie, or X-Api-Key inside passthroughHeaders, and rotate any admin tokens or API keys that invoked tools on those servers.
  3. Upgrade Termix to >= v26.10.0 (v26.11.0) and File Manager plugin to >= v1.0.0: Audit DATA_DIR/.env and the plugins directory for unauthorized .tmxplug archives if untrusted users had File Manager access on <= 2.9.2.

Timeline

  • 2026-04-09 to 2026-04-10: LobeHub merges PR #13684 (b268f44f06) and releases v2.1.49.
  • 2026-10-12: MCPHub merges commit 040f7b9ae0 and releases v1.1.8; Network-AI releases v5.15.5 fixing GHSA-5mm5-4mh4-6gm6, GHSA-v64j-mc7x-c7x7, GHSA-mfxv-jg44-xj48, and GHSA-qvf5-9prv-7r9c.
  • 2026-11-02 (02:18 to 03:17 UTC): NVD and the GitHub Advisory Database publish CVE-2026-120311 through CVE-2026-120315 and CVE-2026-120322 through CVE-2026-120325.

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