CVE-2026-75518: DOMShell: domshell_eval classified as read-tier can execute side-effecting JavaScript without --allow-write
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/domshellIf 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
evalcall
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_COMMANDSexcludedevalmcp-server/index.ts:879-887—domshell_evalregistered withANNO_READand description asserting read-onlysrc/background/index.ts:1849-1854—jsandevalboth dispatch tohandleJs(rawCode)src/background/index.ts:3282—handleJscallscdp.evaluateJs(code)src/background/cdp_client.ts:660-667—evaluateJssendsRuntime.evaluatewithexpression: code, returnByValue: true, awaitPromise: trueand nothrowOnSideEffectgate
Fix
Shipped in @apireno/[email protected] (2026-07-08):
evaladded toWRITE_COMMANDS, aligning tier with actual capabilitydomshell_evalMCP annotation changed fromANNO_READtoANNO_WRITE- Tool description and
MCP_INSTRUCTIONSupdated to remove read-only language; read-only DOM inspection needs pointed atdomshell_cat/domshell_text/domshell_find - Server-only patch — no Chrome Web Store submission required; extension code unchanged
SECURITY.mdadded + 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-writeto the server flags ifeval's write capability is actually needed - Migrate read-only inspection to
domshell_cat/domshell_text/domshell_find - Migrate to
domshell_jsif the caller already runs with--allow-write(same tier, same capability)
Integrator impact
- HKUDS/CLI-Anything — unaffected; their harness doesn't invoke
evalorjscommands (verified by grep). - Kgspin QA-UX drives — unaffected; they run with
--allow-writefor their action gates. - Direct Claude Desktop / Cursor sessions — any that called
domshell_evalwithout--allow-writewill 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
mainat2d63dab; fix planned - 2026-07-08 —
@apireno/[email protected]released to npm and the MCP registry;SECURITY.mdadded; 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_jswith--allow-write. The flaw is thatevalbypassed the flag and was shown as read-only.- Which version fixes CVE-2026-75518?
@apireno/domshell2.0.8, released 2026-07-08.- Will upgrading break my workflows?
Calls to
evalwithout--allow-writenow fail. Add the flag if you need it, or switch todomshell_cat,domshell_textordomshell_find.- Do I need to update the Chrome extension?
No. The fix is server-only and the extension code is unchanged.
References
Read for this analysis:
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 entriesCVE-2026-77312
Flyto2 Core: Arbitrary file write via unguarded data.*/file.* modules (incomplete fix of CVE-2026-67429)
critical10.0Nov 20, 2026CVE-2026-77318
Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP mode
high7.3Nov 20, 2026CVE-2026-77359
Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes
critical9.3Nov 20, 2026CVE-2026-130007
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution
high7.9Nov 19, 2026CVE-2026-130008
sqlite-mcp: Read-only mode bypass via statement chaining and SQL injection in describe_table
high8.2Nov 19, 2026CVE-2026-62964
Gortex: Arbitrary file write / repo-confinement escape in `write_file` / `edit_file` / `move_inline` MCP tools → code execution
high7.8Nov 19, 2026
