AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

CVE-2026-75518: DOMShell: domshell_eval classified as read-tier can execute side-effecting JavaScript without --allow-write

mediumCVSS 4.0 4.8GHSA-vg83-hcp4-5qcc

DOMShell, an MCP server that lets AI agents drive Chrome, labeled its `domshell_eval` tool as read-only. It can run any JavaScript that changes page state, without the `--allow-write` flag. Versions of `@apireno/domshell` before 2.0.8 are affected. Version 2.0.8 moves `eval` to the write tier.

Published Nov 19, 2026 · Analysis Nov 19, 2026

What an attacker can do

domshell_eval (and the eval command inside domshell_execute) was registered as read-tier. Its description promised "read-only ... always available in read-only mode". But eval and the write-tier js command both call handleJs, which sends the raw expression to Chrome DevTools Runtime.evaluate with no side-effect gate. Any expression could change the DOM, window or global state.

No new capability was exposed. The same access existed through domshell_js when the operator ran with --allow-write. The flaw is a false permission boundary (CWE-863, CWE-266). An operator who started the server without --allow-write believed the agent could not change pages. A prompt-injected or misbehaving agent could still do so through eval.

It also misled other layers. MCP hosts such as Claude Desktop and Cursor showed an approval UI based on readOnlyHint: true. Audit logs and deny messages labeled the activity read-tier. Anything that trusted the tier split could over-trust an eval call.

Who is affected

@apireno/domshell before 2.0.8. The issue only matters if you run the MCP server without --allow-write and rely on that to keep the agent read-only. Check the installed version:

npm ls @apireno/domshell

If you launch it with npx, look at the version pinned in your MCP client config. Setups that already pass --allow-write gain no new access from this flaw.

@apireno/domshell

Ecosystem
npm
Affected
< 2.0.8
Fixed in
2.0.8
Check
npm ls @apireno/domshell

How to fix it

Upgrade to 2.0.8, or restart your MCP server against the new version:

npm install @apireno/[email protected]

The fix adds eval to WRITE_COMMANDS, changes the domshell_eval annotation from ANNO_READ to ANNO_WRITE and removes the read-only wording. It is server-only, so no Chrome extension update is needed. After the upgrade, eval without --allow-write returns Error: 'eval' requires --allow-write. For read-only inspection, use domshell_cat, domshell_text or domshell_find.

How to tell if you were hit

Search MCP and server logs for domshell_eval calls, or eval inside domshell_execute, on servers that ran without --allow-write. Those calls were logged as read-tier, so a read-tier entry with a JavaScript expression that assigns values or calls DOM mutating methods is a hit. Beam records agent MCP tool calls, so its history can show which domshell_eval calls an agent made.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The domshell_eval MCP tool (and the eval command inside domshell_execute) was classified as read-tier, allowing it to run without the --allow-write server flag. However, eval and the write-tier js command dispatch to the same handler in the extension and call CDP Runtime.evaluate with the raw expression string and no side-effect gate. Any JavaScript expression could therefore mutate DOM, window, or global state through domshell_eval without the operator's --allow-write authorization.

The tool description explicitly promised "(read-only) ... always available in read-only mode" — the misclassification contradicted the documented contract, not just an implicit one.

Impact

No new capability was exposed — the same write access was already available via domshell_js with --allow-write — but the tier misclassification meant:

  • MCP hosts (Claude Desktop, Cursor, etc.) rendered the wrong approval UI (readOnlyHint: true)
  • Server-side tier flags (--allow-write) misrepresented what an AI agent was actually authorized to do
  • Audit logs and deny messages labeled write-tier activity as read-tier
  • Downstream tools and analysis relying on the tier separation could over-trust an eval call

Framing: OWASP LLM Top 10 LLM06 (Excessive Agency), NIST AI RMF (tool permission boundary + human-approval fidelity), CWE-863 (Incorrect Authorization).

The reporter's main framing: the MCP approval UI and server-side permission model can misrepresent the actual agency being granted to an AI agent.

Affected code paths

  • mcp-server/index.ts:113 — WRITE_COMMANDS excluded eval
  • mcp-server/index.ts:879-887 — domshell_eval registered with ANNO_READ and description asserting read-only
  • src/background/index.ts:1849-1854 — js and eval both dispatch to handleJs(rawCode)
  • src/background/index.ts:3282 — handleJs calls cdp.evaluateJs(code)
  • src/background/cdp_client.ts:660-667 — evaluateJs sends Runtime.evaluate with expression: code, returnByValue: true, awaitPromise: true and no throwOnSideEffect gate

Fix

Shipped in @apireno/[email protected] (2026-07-08):

  • eval added to WRITE_COMMANDS, aligning tier with actual capability
  • domshell_eval MCP annotation changed from ANNO_READ to ANNO_WRITE
  • Tool description and MCP_INSTRUCTIONS updated to remove read-only language; read-only DOM inspection needs pointed at domshell_cat / domshell_text / domshell_find
  • Server-only patch — no Chrome Web Store submission required; extension code unchanged
  • SECURITY.md added + GitHub Private Vulnerability Reporting enabled on the repo

Upgrade path

npm install @apireno/[email protected]

Or, in a persistent install, restart your MCP server against the new version.

Drives that call eval without --allow-write will start receiving Error: 'eval' requires --allow-write. Options:

  • Add --allow-write to the server flags if eval's write capability is actually needed
  • Migrate read-only inspection to domshell_cat / domshell_text / domshell_find
  • Migrate to domshell_js if the caller already runs with --allow-write (same tier, same capability)

Integrator impact

  • HKUDS/CLI-Anything — unaffected; their harness doesn't invoke eval or js commands (verified by grep).
  • Kgspin QA-UX drives — unaffected; they run with --allow-write for their action gates.
  • Direct Claude Desktop / Cursor sessions — any that called domshell_eval without --allow-write will now be denied, aligning behavior with the documented contract.

Reporter / Credit

Ugur Ozer, AI Risk Management

Source-review-first responsible disclosure via private email to the maintainer on 2026-07-08. Reporter finding id: DOMSHELL-EVAL-READ-TIER-BYPASS-001. Ugur followed the standard disclosure ladder correctly despite the missing SECURITY.md at time of report — that gap has now been closed (repo now has SECURITY.md + GitHub Private Vulnerability Reporting enabled).

Timeline

  • 2026-07-08 — Report received by maintainer via private email
  • 2026-07-08 — Source-side claims verified against main at 2d63dab; fix planned
  • 2026-07-08 — @apireno/[email protected] released to npm and the MCP registry; SECURITY.md added; GitHub PVR enabled
  • 2026-07-08 — This advisory published

Questions

Does this give an attacker new access?

No. The advisory says the same write access was already available through domshell_js with --allow-write. The flaw is that eval bypassed the flag and was shown as read-only.

Which version fixes CVE-2026-75518?

@apireno/domshell 2.0.8, released 2026-07-08.

Will upgrading break my workflows?

Calls to eval without --allow-write now fail. Add the flag if you need it, or switch to domshell_cat, domshell_text or domshell_find.

Do I need to update the Chrome extension?

No. The fix is server-only and the extension code is unchanged.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Other MCP servers and tools vulnerabilities

All Other MCP servers and tools entries