Extend script-runner set and add fail-closed guard for mutable-file approval
fix(node-host): extend script-runner set and add fail-closed guard for mutable-file approval
Extend script-runner set and add fail-closed guard for mutable-file approvalb7a37c-fix-extend-script-runner-set-and-add-fail-closed-cve-2026-32978fixextend script runner set add fail
Committed by hydro13
commit message
fix(node-host): extend script-runner set and add fail-closed guard for mutable-file approval
tsx, jiti, ts-node, ts-node-esm, vite-node, and esno were not recognized
as interpreter-style script runners in invoke-system-run-plan.ts. These
runners produced mutableFileOperand: null, causing invoke-system-run.ts
to skip revalidation entirely. A mutated script payload would execute
without the approval binding check that node ./run.js already enforced.
Two-part fix:
- Add tsx, jiti, and related TypeScript/ESM loaders to the known script
runner set so they produce a valid mutableFileOperand from the planner
- Add a fail-closed runtime guard in invoke-system-run.ts that denies
execution when a script run should have a mutable-file binding but the
approval plan is missing it, preventing unknown future runners from
silently bypassing revalidation
Fixes GHSA-qc36-x95h-7j53Editor assessment
This commit patches CVE-2026-32978. The body is genuinely instructive: it lists the runner names that were missing from invoke-system-run-plan.ts, explains the mutableFileOperand null that skipped revalidation, and describes both the runner-set extension and the fail-closed guard so future loaders cannot silently bypass approval. The trade-off is the header, which runs to roughly ninety-seven characters and covers two changes at once, and the `Fixes GHSA-qc36-x95h-7j53` footer lacks the required colon separator. The prose also leans on a bulleted two-part structure, which is fine, but the subject should have been split. Strong content, weak packaging.