{"vuln_id":"CVE-2026-75518","aliases":["GHSA-vg83-hcp4-5qcc"],"description":"DOMShell: domshell_eval classified as read-tier can execute side-effecting JavaScript without --allow-write","published_at":"2026-11-18T22:17:24.147000Z","modified_at":"2026-11-19T16:21:54.763000Z","first_seen_at":"2026-11-21T19:15:19.494546Z","severity":"medium","severity_source":"nvd","cvss_score":4.8,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-266","CWE-863"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00109,"epss_percentile":0.01219,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-75518"},"matched_alias":null,"items":[{"id":2409,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-vg83-hcp4-5qcc / CVE-2026-75518: DOMShell: domshell_eval classified as read-tier can execute side-effecting JavaScript without --allow-write","summary":"DOMShell: domshell_eval classified as read-tier can execute side-effecting JavaScript without --allow-write\n\n### Summary\n\nThe `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.\n\nThe tool description explicitly promised \"(read-only) ... always available in read-only mode\" — the misclassification contradicted the documented contract, not just an implicit one.\n\n### Impact\n\nNo new capability was exposed — the same write access was already available via `domshell_js` with `--allow-write` — but the tier misclassification meant:\n\n- MCP hosts (Claude Desktop, Cursor, etc.) rendered the wrong approval UI (`readOnlyHint: true`)\n- Server-side tier flags (`--allow-write`) misrepresented what an AI agent was actually authorized to do\n- Audit logs and deny messages labeled write-tier activity as read-tier\n- Downstream tools and analysis relying on the tier separation could over-trust an `eval` call\n\nFraming: OWASP LLM Top 10 LLM06 (Excessive Agency), NIST AI RMF (tool permission boundary + human-approval fidelity), CWE-863 (Incorrect Authorization).\n\nThe reporter's main framing: **the MCP approval UI and server-side permission model can misrepresent the actual agency being granted to an AI agent.**\n\n### Affected code paths\n\n- `mcp-server/index.ts:113` — `WRITE_COMMANDS` excluded `eval`\n- `mcp-server/index.ts:879-887` — `domshell_eval` registered with `ANNO_READ` and description asserting read-only\n- `src/background/index.ts:1849-1854` — `js` and `eval` both dispatch to `handleJs(rawCode)`\n- `src/background/index.ts:3282` — `handleJs` calls `cdp.evaluateJs(code)`\n- `src/background/cdp_client.ts:660-667` — `evaluateJs` sends `Runtime.evaluate` with `expression: code, returnByValue: true, awaitPromise: true` and no `throwOnSideEffect` gate\n\n### Fix\n\nShipped in `@apireno/domshell@2.0.8` (2026-07-08):\n\n- `eval` added to `WRITE_COMMANDS`, aligning tier with actual capability\n- `domshell_eval` MCP annotation changed from `ANNO_READ` to `ANNO_WRITE`\n- Tool description and `MCP_INSTRUCTIONS` updated to remove read-only language; read-only DOM inspection needs pointed at `domshell_cat` / `domshell_text` / `domshell_find`\n- Server-only patch — no Chrome Web Store submission required; extension code unchanged\n- `SECURITY.md` added + GitHub Private Vulnerability Reporting enabled on the repo\n\n### Upgrade path\n\n```\nnpm install @apireno/domshell@2.0.8\n```\n\nOr, in a persistent install, restart your MCP server against the new version.\n\nDrives that call `eval` without `--allow-write` will start receiving `Error: 'eval' requires --allow-write`. Options:\n\n- Add `--allow-write` to the server flags if `eval`'s write capability is actually ne\n\nAffected packages: npm:@apireno/domshell\nPatched: @apireno/domshell 2.0.8","url":"https://github.com/advisories/GHSA-vg83-hcp4-5qcc","published_at":"2026-11-19T16:10:53Z","updated_at":"2026-11-19T16:10:54Z","fetched_at":"2026-11-21T19:15:18.416814Z","severity":"medium","cvss_score":4.8,"epss":0.00109,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"@apireno/domshell","vuln_id":"CVE-2026-75518","vuln_ids":["CVE-2026-75518","GHSA-VG83-HCP4-5QCC"],"tags":["ghsa","npm","CWE-266","CWE-863"],"cluster_id":2250,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2409","html":"https://vulnwatch.ve1ve2.com/item/2409"}},{"id":8252,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-75518: DOMShell is a Chrome automation project whose MCP server exposes Unix-style tools for AI agents. Prior to 2.0.8, the DOMShell MCP server classifies the domshel…","summary":"DOMShell is a Chrome automation project whose MCP server exposes Unix-style tools for AI agents. Prior to 2.0.8, the DOMShell MCP server classifies the domshell_eval tool and eval command as read-tier operations that can run without --allow-write, even though eval shares the Runtime.evaluate dispatch path with the write-tier js command and has no side-effect gate. An MCP caller with tool-session access can therefore use domshell_eval to mutate DOM, window, or global state while the host approval interface, server authorization flags, denial messages, and audit records represent the operation as read-only. The bypass does not expose a capability beyond domshell_js for callers already authorized to write, but it violates the configured permission boundary for callers lacking that authorization. This issue is fixed in version 2.0.8.\n\nReferences:\nhttps://github.com/apireno/DOMShell/commit/03c1d7625e220297aff0dde37613d65cfe6f9a36\nhttps://github.com/apireno/DOMShell/releases/tag/mcp-v2.0.8\nhttps://github.com/apireno/DOMShell/security/advisories/GHSA-vg83-hcp4-5qcc","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-75518","published_at":"2026-11-18T22:17:24.147000Z","updated_at":"2026-11-19T16:21:54.763000Z","fetched_at":"2026-11-21T19:15:31.484037Z","severity":"medium","cvss_score":4.8,"epss":0.00109,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"google","product":null,"vuln_id":"CVE-2026-75518","vuln_ids":["CVE-2026-75518","GHSA-VG83-HCP4-5QCC"],"tags":["CWE-266","CWE-863"],"cluster_id":2251,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8252","html":"https://vulnwatch.ve1ve2.com/item/8252"}}]}