Skip to content

deps: upgrade root vitest from 2.x to 3.x (critical security fix) #2974

Closed

Description

@cixzhang

Dependabot alerts #80 and #81 flag vitest versions < 3.2.6 for arbitrary file read/exec when Vitest UI server is listening (critical severity).

The docsite already uses vitest 3.x and was bumped to ^3.2.6 in PR #2973. However, the root devDependency is still vitest: ^2.1.0 (resolves to 2.1.9). Upgrading to 3.x is a major version bump that may require changes to test configuration or APIs.

Current: vitest ^2.1.0 (2.1.9)
Required: vitest >=3.2.6
CVE: Critical — arbitrary file read and execution via Vitest UI server
Impact: Development only (devDependency), but any developer running vitest --ui on an exposed network is at risk.

Action needed: Bump root vitest to ^3.2.6, update @vitest/coverage-v8 to match, and verify all tests still pass with the new major version.

Activity

  1. added
    dependencies
    on Jun 21, 2026
  2. cixzhang commented on Jul 12, 2026

    @cixzhang
    ContributorAuthor

    Resolved by #3850 (merged 2026-07-11), which bumped vitest from 2.x to 4.x, passing through 3.x.

  3. added this to the 0.1.5 milestone on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependencies

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions