Repository navigation
fix(security): lock down csv-gridsheet AI execution and update vulnerable deps - #151
Merged
Merged
Conversation
…able deps csv-gridsheet: - Make settings that choose a command, its flags, tools or cwd machine-scoped and declare untrustedWorkspaces restrictedConfigurations, so a repository's .vscode/settings.json can no longer point an AI function at its own command. - Refuse AI batches in Restricted Mode. - Add gridsheet.ai.confirmBeforeRun (default on, machine-scoped): ask once per file before AI functions run. - Bump to 0.4.1. Dependencies: - preact >=10.26.10 (JSON VNode Injection); raise preact-core peer range. - Update vite, vitest, storybook, playwright, vue within their majors. - Add same-major pnpm overrides for vulnerable transitive deps. - Pin storybook's react/react-dom to 18 and dedupe @codemirror/state|view so stories keep rendering after re-resolution. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
csv-gridsheet (0.4.1)
gridsheet.ai.*setting that chooses a binary, its flags, enabled tools or cwd (custom,*.path,*.extraArgs,*.omitArgs,claude.permissionMode,claude.tools.*,codex.sandbox,codex.ignoreUserConfig,workingDirectory) is nowmachine-scoped and listed incapabilities.untrustedWorkspaces.restrictedConfigurations. Before, a repo's.vscode/settings.jsoncould set e.g.gridsheet.ai.custom: {"X": "sh -c ..."}and a CSV containing=X()ran it on open (eager evaluation).gridsheet.ai.confirmBeforeRun(default on, machine-scoped): the host asks once per file before AI functions run; allowed files are remembered until restart, denials are not. Gate lives in the extension host, not the webview.Dependencies
preact→ ≥10.26.10 (JSON VNode Injection, bundled into the extension webview); preact-core peer^10.26.10.pnpm.overridesfor vulnerable transitive deps (minimatch, brace-expansion, picomatch, js-yaml, form-data, ws, lodash, undici, devalue, …).react/react-domto 18 and dedupe@codemirror/state|view— re-resolution otherwise pulled react-dom 19.3 and a second@codemirror/state, breaking stories.pnpm audit: 6 critical / 65 high → 2 critical / 2 high. Remaining:tinypool(needs vitest 4, dev-only),bracesandhttp-cache-semantics(no fixed release).Test plan
pnpm build:all,pnpm jest,pnpm typecheck:all,pnpm lintpnpm --filter csv-gridsheet build🤖 Generated with Claude Code