llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · @apireno/domshell

GHSA-VG83-HCP4-5QCC

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

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión2.0.8
Exposición14 hDesde la divulgación, 19 nov 2026, 11:10 a. m.
Detección15 minDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Monitoreo
Detectada +1
11:10 a. m.
12:42 a. m.
11:10 a. m.
02:33 p. m.
05:56 p. m.
09:19 p. m.
12:42 a. m.
FechaFaseEventoDetalle
Divulgación Publicada GHSA-VG83-HCP4-5QCC divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
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/domshell@2.0.8` (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/domshell@2.0.8

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>
<info@airiskmanagement.ca>

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/domshell@2.0.8` released to npm and the MCP registry; `SECURITY.md` added; GitHub PVR enabled
  • 2026-07-08 — This advisory published
Versiones

Rangos afectados

Afectada Corregida
@apireno/domshell< 2.0.8
2.0.8
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@apireno/domshell
Corregida 2.0.8 — —
Versiones corregidas2.0.8
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-75518
Otrahttps://github.com/apireno/DOMShell/security/advisories/GHSA-vg83-hcp4-5qcc
Otrahttps://github.com/apireno/DOMShell/commit/03c1d7625e220297aff0dde37613d65cfe6f9a36
Otrahttps://github.com/apireno/DOMShell
Otrahttps://github.com/apireno/DOMShell/releases/tag/mcp-v2.0.8

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.