Skip to content

fix(deps): bump vitest to 4.1.12 for @vitest/mocker advisories - #88

Merged
furedea merged 1 commit into
mainfrom
fix/vitest-advisories
Oct 22, 2026
Merged

furedea merged 1 commit into
mainfrom
fix/vitest-advisories

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

概要

vitest を 4.1.11 から 4.1.12 に更新し,pnpm-lock.yaml 経由で検出されている @vitest/mocker の Dependabot アラートを解消する.

背景

@vitest/mocker 4.1.11 には次の脆弱性がある.4.1.12 で修正済み.

  • 認証なしの手動モック登録によるコードインジェクション
  • Windows のバックスラッシュによるパストラバーサル

vite は overrides で 8.2.4 に固定済みで,vite 側の advisory(launch-editor,server.fs.allow)の修正版(8.1.6 以上)を満たしているため変更しない.

変更内容

  • package.json: vitest を 4.1.12 に更新
  • pnpm-lock.yaml: vitest と @vitest/* を 4.1.12 に更新.未使用になった @jridgewell/sourcemap-codec と tinyexec が削除された
  • minimumReleaseAge(7日)の設定は変更していない

確認

  • pnpm check(format,lint,typecheck,test,knip,build,verify:build)が成功
  • lefthook run pre-commit --all-files が成功

🤖 Generated with Claude Code

@vitest/mocker 4.1.11 allowed code injection through unauthenticated
manual mock registration and had a Windows backslash traversal. Both
are fixed in 4.1.12. vite is already pinned at 8.2.4 via overrides.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying furedea-com with  Cloudflare Pages  Cloudflare Pages

Latest commit: ec48d7c
Status: ✅  Deploy successful!
Preview URL: https://568928d3.furedea-com.pages.dev
Branch Preview URL: https://fix-vitest-advisories.furedea-com.pages.dev

View logs

@furedea
furedea merged commit 564d364 into main Oct 22, 2026
16 checks passed
@furedea
furedea deleted the fix/vitest-advisories branch October 22, 2026 15:24
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.

1 participant