Skip to content

Bump vitest to 4.1.11 to clear GHSA-82fw-gwwq-j7x9 - #36

Merged
DaveHomeAssist merged 1 commit into
mainfrom
fix/vitest-mocker-advisory
Sep 10, 2026
Merged

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

Conversation

@DaveHomeAssist

Copy link
Copy Markdown
Owner

Clears the Audit dependencies CI failure on main.

Problem

npm audit --audit-level=moderate fails on @vitest/mockerGHSA-82fw-gwwq-j7x9, path traversal / arbitrary file read via the redirect mock, affecting 2.1.0 - 4.1.10. The lockfile resolved 4.1.6 via vitest.

Not caused by the Build Toward the Whole series: vitest was ^4.1.6 before and after it. The advisory landed against an untouched dependency.

Fix

Declared floor raised to ^4.1.11 (rather than only refreshing the lockfile) so a future resolution cannot fall back into the vulnerable range.

Verification

  • npm audit --audit-level=moderate — 0 vulnerabilities
  • npm run ci — lint, 42 test files / 300 passed (1 skipped), build, bundle budget, all pass

Run under Node 22 per .nvmrc.

The CI "Audit dependencies" step runs npm audit --audit-level=moderate and
fails on @vitest/mocker, which is vulnerable to path traversal / arbitrary
file read via the redirect mock in the range 2.1.0 - 4.1.10. The lockfile
resolved 4.1.6 through vitest.

vitest was declared ^4.1.6 both before and after the Build Toward the Whole
series, so the range is unchanged by that work; the advisory was published
against a dependency the series never touched.

Raise the declared floor to ^4.1.11 rather than only refreshing the lockfile,
so a future resolution cannot land back inside the vulnerable range. npm
audit reports 0 vulnerabilities and npm run ci passes end to end: lint, 42
test files / 300 tests, build, and bundle budget.
@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, add credits to your account and enable them for code reviews in your settings.

@DaveHomeAssist
DaveHomeAssist merged commit 6e3f1b5 into main Sep 10, 2026
1 check passed
@DaveHomeAssist
DaveHomeAssist deleted the fix/vitest-mocker-advisory branch September 10, 2026 09:21
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