Repository navigation
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/localhoston ports8787(Nexus MCP gateway) and18080(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 withnew URL(), onlyhttpandhttpsare accepted, and the browser is started without a shell (rundll32on Windows,openon macOS,xdg-openon 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_keyhad 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.
setSafeHTMLnow removes scripts, frames, event handlers andjavascript:links.
Other changes
- Skills panel works. It loads skills through
localbridge_skill_listandlocalbridge_skill_get. Before, it called a/skillsroute 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, theduckduckgo.com/*host permissions andweb_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_skillsparser 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 --checkonbackground.jsandcontent.js;manifest.jsonparses.- 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_runcall 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.