Skip to content

fix(deps): upgrade vitest to 4.1.11 and pin fflate - #2

Merged
SanHsien merged 2 commits into
mainfrom
security/vitest-4
Sep 28, 2026
Merged

SanHsien merged 2 commits into
mainfrom
security/vitest-4

Conversation

@SanHsien

Copy link
Copy Markdown
Owner

Resolves Dependabot alerts #1, #3, Fission-AI#4 (vitest / @vitest/mocker path traversal, fixed only in 4.1.11).

  • vitest and @vitest/ui ^3.2.6 → ^4.1.11
  • completion.test.ts: Vitest 4 no longer allows arrow-function mocks to be called with new; switched the three ZshInstaller mocks to function () { return {...} } (same objects).
  • pnpm-workspace.yaml override for fflate >=0.8.3 (moderate, via @vitest/ui).

Local: pnpm test 4488 passed / 79 skipped (same as before), pnpm lint and pnpm build clean, pnpm audit no known vulnerabilities.

🤖 Generated with Claude Code

vitest/@vitest/mocker < 4.1.11 allow path traversal through redirect
mocks (no 3.x fix). Vitest 4 requires constructor mocks to be regular
functions, so the ZshInstaller mocks drop their arrow implementations.
Also overrides fflate (via @vitest/ui) past its unzipSync infinite loop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 26, 2026 09:49
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Update the flake.nix dependency hash to match the refreshed lockfile.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Upgrades Vitest to address security vulnerabilities and updates related mocks and dependencies.

Changes:

  • Upgrade vitest and @vitest/ui to ^4.1.11.
  • Update ZshInstaller mocks for Vitest 4.
  • Override fflate to a secure version.
File Summary
test/​commands/​completion.test.ts Updates constructor-compatible mocks.
pnpm-workspace.yaml Adds the fflate security override.
pnpm-lock.yaml Refreshes dependencies; requires the corresponding flake.nix fetch hash update.
package.json Upgrades Vitest dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pnpm-lock.yaml
Comment on lines +60 to +61
specifier: ^4.1.11
version: 4.1.11(vitest@4.1.11)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SanHsien added a commit that referenced this pull request Sep 28, 2026
…26-09-28

Triage upstream PRs Fission-AI#1990-Fission-AI#1991 and issues Fission-AI#1988-Fission-AI#1989. Update REVIEW.md, DECISIONS.md, HANDOFF.md, and upstream_baseline.json.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@SanHsien
SanHsien merged commit dda267b into main Sep 28, 2026
12 of 14 checks passed
@SanHsien
SanHsien deleted the security/vitest-4 branch September 28, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants