Skip to content

Releases

v1.1.5 — tool arguments can't inject code; execute_js handles await and rejections

Choose a tag to compare

@sachajw sachajw released this 16 Nov 09:37

Security

  • Tool arguments could run arbitrary code in Zotero's chrome context. zotero_set_pref escaped only ", so the value x\"); evil(); // ran evil(). Pref keys, the zotero_read_logs level, and two "Element not found" messages were spliced in unescaped. The MCP SDK doesn't enforce inputSchema, so numeric arguments (windowId, limit, depth, lines, index, scale) could carry code too. All of these are now escaped with JSON.stringify or validated, and level, target and format must be one of their schema values.

Fixed

  • zotero_execute_js reported a rejected promise as Result: undefined. It now reports the error with its reason and stack.
  • Top-level await failed with "await is only valid in async functions", whether bare or with return inside a block. Code is now parsed with acorn: code with top-level await/return runs in an async function (its last expression is the result), and other code runs unchanged.
  • zotero_plugin_install built a wrong file:// URL for paths containing a space, # or %.
  • Removed the unused awaitPromise parameter.

Install (not on npm). The server needs the MCP Bridge plugin in Zotero.

{
  "mcpServers": {
    "zotero-dev": {
      "command": "npx",
      "args": ["-y", "https://github.com/sachajw/2ndbrain-zotero-mcp-server/releases/download/v1.1.5/sachajw-mcp-server-zotero-dev-1.1.5.tgz"],
      "env": { "ZOTERO_RDP_PORT": "6100" }
    }
  }
}

Full notes: CHANGELOG.md.

Plugin v1.0.7 — updates from this repo

Choose a tag to compare

@sachajw sachajw released this 16 Nov 09:37

First plugin release from this repo. Same bridge code as upstream's 1.0.6, with metadata for this fork.

Changed

  • update_url points at this repo's update.json, so Zotero updates the bridge from here rather than offering upstream releases.
  • author and homepage_url name this fork.
  • The .xpi includes LICENSE (MIT; José Fernandes's copyright line is kept alongside this fork's).

Install: download zotero-mcp-bridge-1.0.7.xpi below, then in Zotero go to Tools → Plugins → ⚙️ → Install Plugin From File, and restart Zotero.

Works with Zotero 7 to 10 (strict_min_version 6.999, strict_max_version 10.0.*).