Vulnerabilities in pkg:npm/@apireno/domshell

PACKAGE
Advisory Identifier: GHSA-vg83-hcp4-5qcc
Advisory Summary

CVE-2026-75518 is a MODERATE domshell_eval classified as read-tier can vulnerability (CWE-266: Incorrect Privilege Assignment) affecting DOMShell libraries in the npm ecosystem. The issue involves domshell_eval classified as read-tier can execute side-effecting javascript without --allow-write. Remediation is available by upgrading affected packages to version 2.0.8.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@apireno/domshell

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@apireno/domshell. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-vg83-hcp4-5qcc CVE-2026-75518 MODERATE DOMShell: domshell_eval classified as read-tier can execute side-effecting JavaScript without --allow-write

CVE-2026-75518 at a Glance

CVE Identifier CVE-2026-75518
GHSA Identifier GHSA-vg83-hcp4-5qcc
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-266: Incorrect Privilege Assignment
Affected Product DOMShell
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-75518

To remediate this vulnerability, upgrade all affected DOMShell dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@apireno/domshell fixed: 2.0.8
npm install @apireno/domshell@2.0.8
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @apireno/domshell

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-75518, inspect your project dependencies using npm:

npm ls @apireno/domshell

Analyze the terminal output to locate any version of DOMShell in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.8), your application is affected.

Note: The npm ls @apireno/domshell command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-266: Incorrect Privilege Assignment, where a product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor. In DOMShell, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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

CVE-2026-75518 Affected DOMShell Versions

1 component(s)
Fixed Versions:
2.0.8
Product / Package Ecosystem Affected Versions Fixed Version
@apireno/domshell
npm
< 2.0.8
2.0.8

References

Frequently Asked Questions

What is CVE-2026-75518?
CVE-2026-75518 is a security vulnerability in DOMShell involving domshell_eval classified as read-tier can execute side-effecting JavaScript without --allow-write under CWE-266: Incorrect Privilege Assignment.
Which DOMShell versions are affected?
Affected versions include releases prior to 2.0.8 across affected packages: @apireno/domshell.
What version fixes CVE-2026-75518?
Upgrading to 2.0.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @apireno/domshell affected?
Yes, @apireno/domshell is affected in releases prior to 2.0.8. Upgrade your dependency to 2.0.8 or later.
What CWE is associated with CVE-2026-75518?
CVE-2026-75518 is classified under CWE-266: Incorrect Privilege Assignment (A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.).
How can I check npm dependencies for CVE-2026-75518?
Run the dependency tree command: 'npm ls @apireno/domshell'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vg83-hcp4-5qcc",
  "modified" : "2026-11-19T16:10:53Z",
  "published" : "2026-11-19T16:10:53Z",
  "aliases" : [ "CVE-2026-75518" ],
  "summary" : "DOMShell: domshell_eval classified as read-tier can execute side-effecting JavaScript without --allow-write",
  "details" : "### 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 needed\n- Migrate read-only inspection to `domshell_cat` / `domshell_text` / `domshell_find`\n- Migrate to `domshell_js` if the caller already runs with `--allow-write` (same tier, same capability)\n\n### Integrator impact\n\n- **HKUDS/CLI-Anything** — unaffected; their harness doesn't invoke `eval` or `js` commands (verified by grep).\n- **Kgspin QA-UX drives** — unaffected; they run with `--allow-write` for their action gates.\n- **Direct Claude Desktop / Cursor sessions** — any that called `domshell_eval` without `--allow-write` will now be denied, aligning behavior with the documented contract.\n\n### Reporter / Credit\n\n**Ugur Ozer, AI Risk Management**\n<https://airiskmanagement.ca>\n<info@airiskmanagement.ca>\n\nSource-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).\n\n### Timeline\n\n- 2026-07-08 — Report received by maintainer via private email\n- 2026-07-08 — Source-side claims verified against `main` at `2d63dab`; fix planned\n- 2026-07-08 — `@apireno/domshell@2.0.8` released to npm and the MCP registry; `SECURITY.md` added; GitHub PVR enabled\n- 2026-07-08 — This advisory published",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@apireno/domshell"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/apireno/DOMShell/security/advisories/GHSA-vg83-hcp4-5qcc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-75518"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apireno/DOMShell/commit/03c1d7625e220297aff0dde37613d65cfe6f9a36"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apireno/DOMShell"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apireno/DOMShell/releases/tag/mcp-v2.0.8"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-266", "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-19T16:10:53Z",
    "nvd_published_at" : "2026-11-18T22:17:24Z"
  }
}