Skip to content

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

Merged
btspoony merged 1 commit into
mainfrom
fix/vitest-mocker-advisory
Oct 24, 2026
Merged

btspoony merged 1 commit into
mainfrom
fix/vitest-mocker-advisory

Conversation

@btspoony

Copy link
Copy Markdown
Member

中文

Dependabot 的两条 @vitest/mocker 安全告警(GHSA-qxg6-89mg-rqv8、GHSA-xp26-3454-mjgp,均 medium,first patched 4.1.12)无法由 Dependabot 自己落地:脆弱包是 vitest 的传递依赖,而 vitest 被锁在 4.1.11,安全更新器因此报 security_update_not_possible(latest-resolvable 4.1.11),对应两条红色 npm_and_yarn workflow。

修复:把 devDependency vitest 从 ^4.1.11 提到 ^4.1.12 并重新解析锁文件。锁文件差异只涉及 vitest 子树(vitest + 7 个 @vitest/*),没有其它依赖变动。

验证:pnpm run typecheck、pnpm run test(25 文件 / 649 用例)在 4.1.12 上通过;锁文件在 CI 的 pnpm 11.21.0 --frozen-lockfile 下可解析。

English

Two open Dependabot alerts on @vitest/mocker (GHSA-qxg6-89mg-rqv8, GHSA-xp26-3454-mjgp; medium; first patched 4.1.12) cannot be applied by Dependabot: the vulnerable package is transitive through the pinned vitest 4.1.11, so the security updater fails with security_update_not_possible (latest-resolvable 4.1.11) — the two red npm_and_yarn workflow runs.

Fix: bump the direct devDependency to ^4.1.12 and re-resolve. The lockfile diff covers the vitest subtree only (vitest + 7 @vitest/* packages); no other dependency moves.

Verification: pnpm run typecheck and pnpm run test (25 files / 649 tests) pass; the lockfile still resolves under the CI pnpm 11.21.0 --frozen-lockfile.

Two open Dependabot alerts (GHSA-qxg6-89mg-rqv8, GHSA-xp26-3454-mjgp)
track @vitest/mocker < 4.1.12, first patched in 4.1.12. Dependabot cannot
apply the security update itself because the vulnerable package is
transitive through the pinned `vitest` 4.1.11, so its updater fails with
`security_update_not_possible` (latest-resolvable 4.1.11).

Bump the direct devDependency to `^4.1.12` and re-resolve; the lockfile
diff is the vitest subtree only (vitest + 7 @vitest/* packages), no other
dependency moves.

Verification: `pnpm run typecheck` and `pnpm run test` (25 files / 649
tests) pass on the new version; the lockfile still resolves under the CI
pnpm 11.21.0 `--frozen-lockfile`.
@btspoony
btspoony merged commit 324fe8b into main Oct 24, 2026
1 check passed
@btspoony
btspoony deleted the fix/vitest-mocker-advisory branch October 24, 2026 05:06
@btspoony btspoony mentioned this pull request Oct 24, 2026
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