Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-109332 Overview
CVE-2026-109332 is an origin validation error in the Network-AI npm package before version 5.15.2. The flaw resides in McpSseServer._handleRequest within lib/mcp-transport-sse.ts. The server reflects localhost Origin headers into the Access-Control-Allow-Origin response header regardless of the bind interface. When Network-AI binds a non-loopback address, an attacker-controlled web page sending a spoofed localhost Origin can trick browsers into reading unauthenticated endpoints such as /health cross-origin. The weakness is classified as [CWE-346: Origin Validation Error].
Critical Impact
An attacker-hosted page visited by a victim can read responses from unauthenticated Network-AI endpoints across origins when the server listens on a non-loopback interface.
Affected Products
- Network-AI (npm package network-ai) versions prior to 5.15.2
- Deployments binding McpSseServer to a non-loopback interface
- Model Context Protocol (MCP) Server-Sent Events (SSE) transport in Network-AI
Discovery Timeline
- 2026-10-12 - CVE-2026-109332 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-109332
Vulnerability Analysis
The vulnerability lives in the MCP SSE transport handler, specifically McpSseServer._handleRequest in lib/mcp-transport-sse.ts. The handler inspects the incoming Origin header and reflects it into Access-Control-Allow-Origin whenever the origin matches a localhost pattern. The check does not account for which network interface the server is actually bound to.
When operators run Network-AI on a non-loopback address, such as 0.0.0.0 or a LAN IP, the trust assumption that localhost origins represent local-only callers breaks. A remote browser can present Origin: http://localhost:PORT while connecting to the server's routable address. The server then permits the cross-origin read.
The practical consequence is limited to data exposed by unauthenticated endpoints like /health. Confidentiality impact is low, and no integrity or availability impact is reported.
Root Cause
The root cause is improper origin validation. The code conflates the client-supplied Origin string with the server's bind context. Localhost allow-listing is only safe when the listener is itself bound to the loopback interface. Reflecting a localhost Origin from a publicly reachable listener defeats the Same-Origin Policy for callers that can be lured into visiting a hostile page.
Attack Vector
Exploitation requires three preconditions: Network-AI running on a non-loopback bind address, a victim who visits an attacker-controlled page, and that page issuing a cross-origin fetch against the server's reachable address with a crafted localhost Origin header where the browser permits it, or by relying on the reflected header to pass the browser's CORS preflight. The attacker then reads responses from unauthenticated routes such as /health. User interaction is required because the request is driven by a visited page.
No verified proof-of-concept code is available. See the GitHub Security Advisory GHSA-4pvg-m42h-c3x2 and the VulnCheck Advisory for additional technical context.
Detection Methods for CVE-2026-109332
Indicators of Compromise
- HTTP responses from Network-AI that return Access-Control-Allow-Origin: http://localhost:* when the request originated from a non-local client IP.
- Access logs on /health or other unauthenticated MCP SSE endpoints showing requests from external source IPs paired with localhost Origin headers.
- Browser-driven requests reaching the Network-AI listener from off-host networks.
Detection Strategies
- Inventory running instances of the network-ai npm package and flag any version earlier than 5.15.2.
- Correlate server bind address with CORS response headers to find mismatches where a non-loopback listener reflects localhost origins.
- Review web proxy and reverse-proxy logs for Origin: http://localhost or Origin: http://127.0.0.1 headers arriving on externally exposed services.
Monitoring Recommendations
- Enable request logging on the MCP SSE transport, capturing Origin, Host, remote IP, and response Access-Control-Allow-Origin fields.
- Alert when the Access-Control-Allow-Origin response header reflects a localhost value on a publicly reachable listener.
- Track dependency manifests (package.json, package-lock.json) in source control to catch introductions of vulnerable network-ai versions.
How to Mitigate CVE-2026-109332
Immediate Actions Required
- Upgrade the network-ai npm package to version 5.15.2 or later across all deployments.
- Rebind McpSseServer to 127.0.0.1 where remote access is not required, so localhost origin trust aligns with the listening interface.
- Place Network-AI behind a reverse proxy or authenticated gateway that enforces strict Origin and authentication checks before forwarding to the MCP SSE transport.
Patch Information
The maintainer fix is included in Network-AI 5.15.2. Refer to the GitHub Security Advisory GHSA-4pvg-m42h-c3x2 for the authoritative patch reference and the VulnCheck Advisory for additional vendor-neutral context.
Workarounds
- Restrict the listener to the loopback interface (127.0.0.1) when remote access is unnecessary.
- Use host-based firewall rules to block inbound connections from non-trusted networks to the Network-AI port.
- Terminate CORS at an upstream proxy that validates Origin against an explicit allow-list and strips reflected headers.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

