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:
- LobeHub Chat
1.84.26before2.1.49TempFileManager.writeTempFile()path traversal to RCE (CVE-2026-120315/GHSA-2g9j-v25c-4j97, CVSS 8.8 High): Insrc/server/utils/tempFileManager.ts,writeTempFile(data, name)built the destination path withjoin(this.tempDir, name)without stripping directory components fromname. An authenticated user could call thefile.createFiletRPC mutation with a traversal filename such as../../app/startServer.jsand trigger server-side document parsing, causing LobeHub to write the attacker’s file bytes over application files on disk. Fixed inv2.1.49(commitb268f44f06). - Network-AI
< 5.15.5multi-agent orchestrator path traversals and unauthenticatedA2AServertask execution (CVE-2026-120311,CVE-2026-120312,CVE-2026-120313, andCVE-2026-120314, CVSS 8.8 to 7.3 High): Innetwork-ai(a TypeScript/MCP multi-agent coordination layer for Claude Code, LangChain, CrewAI, and AutoGen),FileJobStore(CVE-2026-120311/GHSA-v64j-mc7x-c7x7) andAgentVCR(CVE-2026-120312/GHSA-mfxv-jg44-xj48) concatenated caller-suppliedidor cassettenamevalues with.jsonviapath.join(), allowing../sequences to read, overwrite, or delete arbitrary.jsonfiles (includingAuthGuardiantrust 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-evilfor base/data/project), andA2AServer,ApprovalInbox, andSwarmTransportServer(CVE-2026-120314/GHSA-qvf5-9prv-7r9c) left JSON-RPC task routes (tasks/send,tasks/get,tasks/cancel) unauthenticated whenever nosecretoption was passed. Fixed innetwork-ai 5.15.5. - Termix
<= 2.9.2SOCKS5 loopback spoofing in/plugin-api/file-manager/transferToHost(CVE-2026-120322, CVSS 9.9 Critical): In Termix’s File Manager plugin,transferToHostincluded a local-transfer shortcut that wrote files directly to the Termix server’s own filesystem (fs.createWriteStream(destPath)) wheneverisLocalSshEndpoint()saw that the SSH session’s recordedipwas127.0.0.1orlocalhost. Because the recordedipwas taken verbatim from the user’sPOST /plugin-api/file-manager/connectbody even when the SSH session was routed through an attacker-controlledsocks5proxy, any authenticated user could connect to their own SSH server via SOCKS5 while declaringip: "127.0.0.1", and then calltransferToHostto overwriteDATA_DIR/.env(JWT_SECRET) or drop an unsigned.tmxplugplugin on the Termix host. Fixed in Termixv26.10.0(and standalone File Manager pluginv1.0.0), which removes the local shortcut and writes all transfers over SFTP. - MCPHub
< 1.1.8OpenAPIpassthroughHeaderscredential exfiltration (CVE-2026-120323, CVSS 7.3 High / 4.3 Medium) and Knip<= 6.44.0knip --fixworkspace path traversal (CVE-2026-120325, CVSS 8.3 High / 6.3 Medium): Insamanhappy/mcphub,isPrivilegedServerConfig()restrictedstdioMCP servers to admins, but allowed non-admin users to createopenapiorstreamable-httpMCP servers withpassthroughHeaders: ["Authorization", "Cookie", "X-Api-Key"]pointing to an external URL. Whenever an administrator invoked a tool on that server,OpenAPIClientforwarded the administrator’s platformAuthorizationandCookieheaders verbatim to the attacker’s server (fixed inv1.1.8via commit040f7b9ae0). Inwebpro-nl/knip, a malicious repository declaring aworkspacesentry such as"../victim-dir"inpackage.jsonorknip.jsoncausedknip --fix(IssueFixer.ts) to delete or overwrite.ts/.jsfiles 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
| Ecosystem | Package / Project | CVE / GHSA | Severity | Affected versions | Fixed version | Vulnerable component |
|---|---|---|---|---|---|---|
| Docker / npm | LobeHub Chat (lobehub/lobehub) | CVE-2026-120315 (GHSA-2g9j-v25c-4j97) | CVSS 8.8 High | >= 1.84.26, < 2.1.49 | 2.1.49 | TempFileManager.writeTempFile() in src/server/utils/tempFileManager.ts |
| npm | network-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.5 | 5.15.5 (5.17.1) | FileJobStore (lib/job-queue.ts) and AgentVCR.load() / save() (lib/agent-vcr.ts) |
| npm | network-ai | CVE-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.js | Termix (Termix-SSH/Termix) | CVE-2026-120322 | CVSS 9.9 Critical (NVD) / 8.8 High | <= 2.9.2 | Core v26.10.0 (v26.11.0), File Manager plugin v1.0.0 | /plugin-api/file-manager/transferToHost (isLocalSshEndpoint + pipelinedSftpToLocalFile) |
| Docker / Node.js | MCPHub (samanhappy/mcphub) | CVE-2026-120323 | CVSS 7.3 High / 4.3 Medium | <= 1.0.45, <= 1.1.7 | 1.1.8 | src/clients/openapi.ts, src/services/mcpService.ts, and src/utils/passthroughHeaders.ts |
| npm | knip (webpro-nl/knip) | CVE-2026-120325 | CVSS 8.3 High / 6.3 Medium | <= 6.44.0 | Inspect workspaces before --fix | ConfigurationChief.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:
- Unanchored
startsWithinInputSanitizer.sanitizePath()(CVE-2026-120313/GHSA-5mm5-4mh4-6gm6):sanitizePath(inputPath, basePath)normalized both paths and checkedif (!resolvedPath.startsWith(resolvedBase)). Becausenormalize('/data/project')has no trailing slash,/data/project-evil/secrets.jsonstarts with/data/projectand passed validation. Version5.15.5replaces the string prefix check withconst rel = relative(resolvedBase, resolvedPath)and rejects any path whererel === '..' || rel.startsWith('..' + sep) || isAbsolute(rel)or where either input contains a NUL byte (\0). - Arbitrary
.jsonread/write/delete inFileJobStoreandAgentVCR(CVE-2026-120311/GHSA-v64j-mc7x-c7x7andCVE-2026-120312/GHSA-mfxv-jg44-xj48): BothFileJobStore(join(this.dir, id + '.json')inlib/job-queue.ts) andAgentVCR(join(this.config.cassettePath, name + '.json')inlib/agent-vcr.ts) built file paths without callingInputSanitizer. Passing../../data/auth-guardian-policyor../../data/grantsallowed an attacker to read or overwriteAuthGuardiantrust configuration or delete.jsonfiles across the filesystem. Version5.15.5routes both stores through a newInputSanitizer.safeChildPath(baseDir, name, '.json')helper that enforces/^[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}$/, rejects.., and verifiesdirname(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; } - Unauthenticated
A2AServer,ApprovalInbox, andSwarmTransportServer(CVE-2026-120314/GHSA-qvf5-9prv-7r9c): Inlib/a2a-server.ts, thesecretBearer token option was optional by default; when omitted,tasks/send,tasks/get, andtasks/cancelaccepted unauthenticated JSON-RPC requests. Version5.15.5makessecretmandatory onA2AServer,ApprovalInbox(HTTP), andSwarmTransportServerunlessallowUnauthenticated: trueis explicitly passed, refuses to bind unauthenticated servers to non-loopback addresses, and verifies Bearer tokens in constant time withtimingSafeEqual.
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
- Upgrade LobeHub Chat to
>= 2.1.49and Network-AI to>= 5.15.5(5.17.1): Note thatnetwork-ai 5.15.5introduces a breaking security change: constructingA2AServer,ApprovalInbox(HTTP), orSwarmTransportServerwithout asecretnow throws an error unlessallowUnauthenticated: trueis explicitly configured on a loopback bind. - Upgrade MCPHub to
>= v1.1.8and audit registered servers: Checkmcp_settings.json(or database server configs) for anyopenapiorstreamable-httpserver that listedAuthorization,Cookie, orX-Api-KeyinsidepassthroughHeaders, and rotate any admin tokens or API keys that invoked tools on those servers. - Upgrade Termix to
>= v26.10.0(v26.11.0) and File Manager plugin to>= v1.0.0: AuditDATA_DIR/.envand the plugins directory for unauthorized.tmxplugarchives 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 releasesv2.1.49. - 2026-10-12: MCPHub merges commit
040f7b9ae0and releasesv1.1.8; Network-AI releasesv5.15.5fixingGHSA-5mm5-4mh4-6gm6,GHSA-v64j-mc7x-c7x7,GHSA-mfxv-jg44-xj48, andGHSA-qvf5-9prv-7r9c. - 2026-11-02 (
02:18to03:17 UTC): NVD and the GitHub Advisory Database publishCVE-2026-120311throughCVE-2026-120315andCVE-2026-120322throughCVE-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
- lobehub/lobehub commit b268f44f06 (PR #13684) and release v2.1.49 (CVE-2026-120315 / GHSA-2g9j-v25c-4j97)
- Jovancoding/Network-AI release v5.15.5 and compare v5.15.4...v5.15.5 (CVE-2026-120311 to CVE-2026-120314)
- samanhappy/mcphub commit 040f7b9ae0 and release v1.1.8 (CVE-2026-120323: passthroughHeaders credential isolation)
- 0xGenesi Advisories: Termix transferToHost (CVE-2026-120322), MCPHub passthroughHeaders (CVE-2026-120323), and Knip workspaces (CVE-2026-120325)
- NVD: CVE-2026-120315, CVE-2026-120311, CVE-2026-120322, CVE-2026-120323, and CVE-2026-120325