Skip to content

WebAgent v2.0.7

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 12:11

WebAgent v2.0.7

WebAgent is a browser extension that lets web AI sites (DeepSeek, Google Gemini, Google AI Studio, Kimi, Qwen, Z.ai, Duck.ai) use Nexus on your own machine. It talks only to Nexus at 127.0.0.1:8787.

This is a security release. Everyone on 2.0.6 or older should upgrade. In 2.0.6 the background worker could fetch any URL, a crafted URL could run a shell command through open_url, and tool calls ran automatically by default.

Security fixes

  • Local-only network access. The background worker fetches only 127.0.0.1 / localhost on ports 8787 (Nexus MCP gateway) and 18080 (Nexus Core). It checks that the request came from this extension, allows only GET and POST, and sends no cookies. The content script applies the same check before any request, and the Server URL setting rejects other addresses.
  • You approve each tool call. Auto-execute is now off by default, and 2.0.7 switches it off once on upgrade. Each tool call shows a Run / Reject card with the tool the AI asked for, the MCP tool WebAgent will actually call (for example nexus_run_script, with a code-execution warning) and the arguments. Nothing runs until you click Run. You can turn auto-execute back on in the Settings Center.
  • No shell for open_url / browser_open. The URL is parsed with new URL(), only http and https are accepted, and the browser is started without a shell (rundll32 on Windows, open on macOS, xdg-open on Linux).
  • No shell for adb. Tap, swipe, text and key commands run without a local shell; coordinates must be integers and key codes are validated. browser_press_key had the same issue and is fixed too.
  • HTML injection fixed. Tool and skill names and descriptions from MCP servers, memory keys and toast messages are escaped or inserted as text. setSafeHTML now removes scripts, frames, event handlers and javascript: links.

Other changes

  • Skills panel works. It loads skills through localbridge_skill_list and localbridge_skill_get. Before, it called a /skills route the bridge does not have, so the list was always empty.
  • Hidden memory writes are off by default. The switch that hides memory blocks in the chat is now in the Settings Center and starts off.
  • Smaller permission set. Removed activeTab, clipboardWrite, the duckduckgo.com/* host permissions and web_accessible_resources, so websites can no longer detect WebAgent by loading its files.
  • Removed the unreachable popup (the toolbar icon opens the in-page panel, as before) and dead code: the port 21888 knowledge route, the nexus_skills parser and an unused protocol header.
  • The version sent to Nexus now comes from manifest.json. The memory badge is translated.
  • Docs: USAGE.md rewritten to match the current panel; README corrected (WebAgent sends no token). The release workflow now checks every host named in the code against an allowlist.

Install

Download WebAgent-2.0.7.zip below, unzip it, open your browser's extensions page, turn on Developer mode and choose Load unpacked on the folder. If an older WebAgent is installed, remove or disable it first. Check the zip against WebAgent-2.0.7.zip.sha256 if you like.

How this release was checked

  • node --check on background.js and content.js; manifest.json parses.
  • The background allowlist and the escaping were checked with scripted tests against a simulated page.
  • Tried by hand on DeepSeek: the Run / Reject card appears for a command_run call and the command runs after Run.
  • Not tested: the other supported sites, the URL openers on each OS, and adb on a real device.

Full details are in the CHANGELOG.