Skip to content

Nexus v1.4.8

Choose a tag to compare

@github-actions github-actions released this 01 Dec 09:04
· 66 commits to main since this release

Nexus v1.4.8

Correction (2026-12-01): these notes said token checks on the ChatGPT tunnel path were confirmed from the source. That was wrong. In 1.4.8, /mcp on 8787 and 18080 accepts requests without a token, including requests relayed through a tunnel, and lb_ token scopes are not applied to tool calls forwarded through the MCP gateway, so a Read-Only token can call write tools. A wrong token gets 401. Whether the bundled tunnel client adds the lb_ token has not been verified. Fixed in 1.4.9 (in progress): non-local requests need a token, and lb_ scopes are enforced. Until then, stop the tunnel when you are not using it.

Nexus is a local execution layer for AI. It lets web AI assistants, local LLMs and MCP agents run real work on your own machine (terminals, files, Git, browsers, ComfyUI, Blender, Unity) with an action ledger, checkpoint rollback and user-controlled security. See the README for what it does and how to get started.

This is a security release. Everyone on 1.4.7 or older should upgrade. It finishes the fix started in 1.4.7.

What 1.4.7 missed

v1.4.7 (released earlier the same day) added a request guard to the bridge, the Core Server, the fallback gateway and the Unity HTTP listener. A follow-up audit of every listener in the code found two it did not cover:

  • Managed stdio MCP gateways. Each managed stdio MCP service gets its own HTTP listener on 127.0.0.1 at the port in its config. It still sent Access-Control-Allow-Origin: * and had no origin check, so a web page could send it tools/call requests for that MCP server.
  • WebSocket upgrades on the Unity service listener. WebSocket connections are not subject to CORS, and the upgrade path skipped the guard.

Both now use the same guard. The v1.4.7 tag and notes are left unchanged.

What was wrong in 1.4.6 (fixed in 1.4.7)

The v1.4.6 notes said the bridge "blocks unauthenticated state-changing requests from untrusted web pages". That was true for requests that change state, but it left reads open:

  • The bridge on 127.0.0.1:8787 sent Access-Control-Allow-Origin: * on every response.
  • The origin check only ran on state-changing requests (not on GET).
  • Several GET routes need no token, so any web page open in your browser could read their responses while Nexus was running. Affected data: Project Builder state (goals, ledger, evidence, delivery reports), the list of managed MCP services and their recent logs, provider logs, and the list of remote MCP services (URLs; tokens were already masked).
  • There was no Host header check, so a page using DNS rebinding could reach the bridge as if it were same-origin.

This was found in a code review after 1.4.6 shipped. There are no known reports of it being exploited. The v1.4.6 tag and its notes are left unchanged.

The request guard

From v1.4.8 the same request guard runs on every local listener: bridge 8787, Core Server 18080, the fallback integrated gateway, each managed stdio MCP gateway, and the Unity service listener (HTTP and WebSocket):

  • Reads are covered. Browser requests are accepted only from trusted origins (the WebAgent extension, the desktop app, localhost / 127.0.0.1 pages, and over HTTPS the AI sites WebAgent supports), for every method including GET. When a cross-site request carries no Origin, its Referer is checked. Others get HTTP 403.

  • No wildcard CORS. CORS headers are sent only to a trusted origin, echoing that origin.

  • Host header check (DNS rebinding). A browser request whose Host is not a loopback name, an IP literal, the PUBLIC_BASE_URL host or a host in NEXUS_ALLOWED_HOSTS is rejected with HTTP 403 HOST_NOT_ALLOWED.

  • Error codes. All rejections are HTTP 403. The code field depends on the listener and the check:

    Listener Untrusted browser origin Unknown Host Request through a remote host / tunnel from a non-allowed origin
    Bridge 8787, managed stdio MCP gateways, fallback gateway, Unity listener ORIGIN_NOT_TRUSTED HOST_NOT_ALLOWED ORIGIN_NOT_ALLOWED (bridge only)
    Core Server 18080 BROWSER_CROSS_ORIGIN_FORBIDDEN HOST_NOT_ALLOWED ORIGIN_NOT_ALLOWED

    The v1.4.6 notes only mentioned ORIGIN_NOT_TRUSTED; that is the bridge's code for the local check, but the remote-host check has always returned ORIGIN_NOT_ALLOWED. If you match on error codes, use this table.

  • Hostname matching for the remote-origin allowlist: the origin's hostname must equal an allowed domain or be a subdomain of it (so chat.deepseek.com passes and chatgpt.com.evil.io does not). Previously this was a substring match, so chatgpt.com.evil.io could pass on remote hosts.

  • Regression tests cover all of the above. docs/HTTP_ROUTES.md lists every route and what protects it.

What this does not change

  • CLI tools and MCP agents (no browser Origin / Sec-Fetch-Site headers) work as before. Nexus treats processes running as your user on your machine as trusted; it does not defend against malware already on the machine.
  • MCP clients that send a token keep using their lb_ Local MCP Access Token. Management routes still require the per-install management token.
  • If you reach Nexus through a tunnel hostname that browsers open directly, add that hostname to NEXUS_ALLOWED_HOSTS (comma-separated) or set it as PUBLIC_BASE_URL.

Known risks that remain, and what you can do

Many bridge routes take no token. They are protected only by the origin and Host checks above, so two kinds of caller can still reach them while Nexus is running:

  • A compromised page on a trusted AI site. If a page on chatgpt.com, chat.deepseek.com or another site WebAgent supports were hit by XSS or injected script, it could call these routes from your browser: read Project Builder state, managed MCP lists and logs, and call write routes such as /api/mcp/execute-script.
    What to do: open AI sites only when you are using them with Nexus, and close tabs you don't need while Nexus is running.
  • Programs running on your machine as your user. Local processes are not restricted. This is a design assumption of any local bridge: software already running as you can act as you.

POST /api/mcp/security-policy/unrestricted deserves a separate mention. It takes no token and turns on Unrestricted Execution Mode for external MCP tools, which lets their calls run without approval. POST /api/mcp/security-policy/trust (marks an external MCP server as trusted) is in the same position.
What to do: in the desktop app, open MCP Servers and check that Global MCP Safety is set to PROTECTED, not UNRESTRICTED. Review which external MCP servers are marked trusted on the same page.

The desktop app and WebAgent call these routes without a token today, so requiring one needs changes on both sides; that is planned as separate work. Management routes (/oauth/* management, Core Server /api/management, tokens, approvals, projects) do require the management token.

See THREAT_MODEL.md and HTTP_ROUTES.md.

How this release was verified

  • Against a locally running bridge: an Origin for every site WebAgent 2.0.2 supported (ChatGPT, DeepSeek, Gemini, AI Studio, Kimi, Qwen, Tongyi, Doubao, Dola, Duck.ai, Perplexity, Copilot, Dangbei, z.ai) gets HTTP 200 on MCP initialize and on reads, with its own origin echoed in CORS. evil.example, null and chatgpt.com.evil.io origins, and rebound Host headers, get 403 with no CORS header. CLI and Node clients without an Origin are unaffected.

  • Regression tests for the guard, the fallback gateway and the stdio gateway were added. All 504 contract tests that CI runs pass. The full suite has 98 known failures outside CI; see below.

  • Every entry in SHA256SUMS.txt matches the published files. All five installers (exe, both dmgs, deb, AppImage) come from the same tagged commit; each one's bundled bridge reports 1.4.8, contains the guard and has no wildcard CORS header.

  • End to end in a real browser, on the published v1.4.8 installer after release (2026-12-01): Nexus 1.4.8 installed on Windows 11 Pro 23H2 (build 22631.5909), WebAgent browser extension in Google Chrome 158.0.8127.37 (64-bit, Stable). A tool call from the AI opened a Command Prompt window. ChatGPT, DeepSeek, Gemini and Duck.ai connected, and so did the other sites WebAgent 2.0.2 supported. The Tampermonkey userscript version was not part of this run.

  • ChatGPT through the MCP tunnel built into Nexus (2026-12-01, Windows 11, Nexus 1.4.8): the tunnel connected and the desktop app showed ChatGPT Ready, and Nexus was added in ChatGPT as a custom MCP server over that tunnel with Authentication set to No authentication. Token checks on this path were not verified; see the correction at the top of these notes.

Update (WebAgent 2.0.3): ChatGPT was tested through the WebAgent extension on this release; from WebAgent 2.0.3 it is supported only through the MCP tunnel built into Nexus (Settings → AI Connections → ChatGPT & Tunnel). WebAgent 2.0.3 also drops Doubao, Dola, Perplexity, Copilot and Dangbei, which were never verified by the maintainer. Its supported sites are DeepSeek, Gemini, AI Studio, Kimi, Qwen, Z.ai and Duck.ai.

About the full test suite

CI runs the contract suite above. The repository's full vitest run (about 1,800 tests) is not run in CI and currently has 98 failures. The count was the same before and after this change, but that alone does not prove nothing regressed, so here is the split:

  • 18 need an environment CI does not have (Windows, PowerShell, Edge/Chrome, Node 24, packaged LSP resources).
  • 17 assert outdated values (tool count 332 vs 340, migration count, version and UI strings). These are wrong tests and will be fixed before the next release.
  • 63 end-to-end tests have not been analysed yet. Treat them as known unverified scope: we cannot say yet whether each one is a test problem or a real defect.

Download

Platform File
Windows 10/11 (x64) Nexus_1.4.8_x64-setup.exe
macOS, Apple Silicon Nexus_1.4.8_aarch64.dmg
macOS, Intel Nexus_1.4.8_x64.dmg
Debian / Ubuntu (x64) Nexus_1.4.8_amd64.deb
Other Linux (x64) Nexus_1.4.8_amd64.AppImage

The .sig, .app.tar.gz and latest.json files are used by the in-app updater; you don't need to download them. SHA256SUMS.txt lists checksums for every file.

On macOS, if the system refuses to open the app on first launch, right-click it in Applications and choose Open.

Upgrading

Install the new version over your existing one, or use the in-app updater. Settings and data are kept.

WebAgent 2.0.2 works with this release and needs no update. Its settings panel incorrectly labels the default server as 18080; the actual default is http://127.0.0.1:8787, so leave the address as it is.

The Tampermonkey userscript was not tested end to end in this release. Please report problems with it on GitHub Issues.