MEDIUM · CVSS 4.0 EPSS 0.2% · 2th percentile CWE-266CWE-863

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

Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-vg83-hcp4-5qcc

Summary

The @apireno/domshell package incorrectly classified the domshell_eval tool as a read-only operation, allowing JavaScript with side effects to execute without the required write permissions. Users of this MCP server should upgrade to version 2.0.8 immediately to ensure proper authorization enforcement.

Who is affected

Affected deployments include any environment using domshell versions below 2.0.8, such as Claude Desktop or Cursor, where AI agents were granted read-tier access. Because the tool was misclassified, agents could perform unintended DOM or global state mutations without triggering the operator's --allow-write authorization gate. This undermines the security model of the MCP host by misrepresenting the actual agency granted to the AI.

Exploitability

The vulnerability is rated MEDIUM with a CVSS 4.0 vector of AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N, indicating low attack complexity and the requirement for local, low-privileged access. The current EPSS score is 0.001 and there is no evidence of active exploitation via CISA KEV.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm @apireno/domshell >= 0, < 2.0.8 2.0.8 npm install @apireno/[email protected]

CVSS 4.0 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

Attack vectorLocal
Attack complexityLow
Attack requirementsNone
Privileges requiredLow
User interactionNone
Confidentiality (vulnerable system)Low
Integrity (vulnerable system)Low
Availability (vulnerable system)None
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

Was there a remote code execution vulnerability?

No, this was an authorization bypass involving the misclassification of a tool tier, which allowed the execution of JavaScript side effects that should have been restricted to write-tier permissions.

What happens if I upgrade to 2.0.8 without changing my configuration?

If your current setup calls domshell_eval without the --allow-write flag, the call will now be denied by the server, as the tool has been correctly reclassified to the write tier.

Is this vulnerability being actively exploited?

No. There is no record of active exploitation according to CISA KEV data.

Original advisory description
### 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** <https://airiskmanagement.ca> <[email protected]> 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

References

Source records: GHSA-vg83-hcp4-5qcc (OSV.dev) · EPSS by FIRST, 2026-11-26.