Skip to content

fix(state): bump vitest to ^4.1.0 in module-state, resolving Dependabot alerts #382/#377 - #5217

Merged
odinr merged 1 commit into
mainfrom
fix/vitest-module-state-security
Aug 5, 2026
Merged

fix(state): bump vitest to ^4.1.0 in module-state, resolving Dependabot alerts #382/#377#5217
odinr merged 1 commit into
mainfrom
fix/vitest-module-state-security

Conversation

@odinr

@odinr odinr commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

What

Bumps vitest in packages/modules/state from ^2.0.5 to ^4.1.0 (dev dependency, test runner only), matching the version already used across the rest of the monorepo.

Why

Resolves Dependabot security alerts #382/#377 (Vitest UI server arbitrary file read/execute vulnerability, affects < 3.2.6). packages/modules/state was the one package still resolving to the vulnerable vitest@2.1.9.

Supersedes #5212

Dependabot's own PR (#5212, closed) targeted the same alert but was based on a stale main snapshot — merging it as-is would have regressed 25 other packages from ^4.1.0 back down to ^3.2.6. This PR is a narrower, non-regressive fix scoped to just the one package that actually needed it.

Validation

  • tsc -b clean
  • Biome clean
  • pnpm install --frozen-lockfile confirms lockfile consistency
  • pnpm why vitest confirms resolution to vitest@4.1.10, clear of the vulnerable range
  • Test run hits a pre-existing, unrelated leveldown native-binding issue (reproduces on main too, environment-only, not a regression from this change)

Changeset included (patch bump).

Resolves Dependabot alerts #382/#377 (vitest UI arbitrary file read/execute, < 3.2.6). Supersedes PR #5212, which is stale relative to main's existing vitest ^4.1.0 bump elsewhere and would have regressed 25 other packages back to ^3.2.6.
@odinr
odinr requested a review from a team as a code owner August 5, 2026 11:46
@changeset-bot

changeset-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 04b6f72

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@equinor/fusion-framework-module-state Patch
@equinor/fusion-framework-app Patch
@equinor/fusion-framework-react-app Patch
@equinor/fusion-framework-cookbook-app-react-state Patch
@equinor/fusion-framework-dev-portal Patch
portal-analytics Patch
poc-portal Patch
@equinor/fusion-framework-cli Patch
portal Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added 🐞 bug Something isn't working 🧬 Modules labels Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 65.13% 3602 / 5530
🔵 Statements 64.7% 4287 / 6625
🔵 Functions 51.51% 1239 / 2405
🔵 Branches 55.16% 1985 / 3598
File CoverageNo changed files found.
Generated in workflow #15136 for commit 04b6f72 by the Vitest Coverage Report Action

@odinr
odinr merged commit 05586e7 into main Aug 5, 2026
10 checks passed
@odinr
odinr deleted the fix/vitest-module-state-security branch August 5, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working 🧬 Modules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant