Skip to content

Dev test stack: npm audit reports critical Vitest/Happy DOM advisories #366

Description

@BorisTyshkevich

Finding

A clean npm ci on main / the #365 branch reports 8 vulnerabilities: 3 critical, 2 high, and 3 moderate.

Direct dev dependencies involved:

  • package.json:25@vitest/coverage-v8@^2.1.8 (critical via Vitest)
  • package.json:29happy-dom@^15.11.0 (critical VM-context escape / module compiler advisories; audit fix is 20.x)
  • package.json:31vitest@^2.1.8 (critical arbitrary-file read/execute advisory; audit fix is 4.x)

Transitive findings include Vite path traversal / Windows deny-bypass advisories, esbuild dev-server request exposure, and fast-uri host confusion.

Why deferred

This is unrelated to #365's saved-query persistence fixes. npm audit fix --force proposes coordinated semver-major upgrades (Vitest 4.x, Happy DOM 20.x), so it needs a focused compatibility change with the full 100% coverage gate and e2e verification rather than being folded into a bug-fix PR.

Repro

npm ci && npm audit

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions