Skip to content

Fix vulnerable dependencies by upgrading vitest and vite#1090

Merged
threeal merged 1 commit into
mainfrom
fix/vulnerable-dependencies
May 18, 2026
Merged

Fix vulnerable dependencies by upgrading vitest and vite#1090
threeal merged 1 commit into
mainfrom
fix/vulnerable-dependencies

Conversation

@threeal
Copy link
Copy Markdown
Owner

@threeal threeal commented May 18, 2026

Summary

  • Upgraded vitest and @vitest/coverage-v8 from 4.0.15 to 4.1.6
  • Added vite@^6.4.2 as an explicit dev dependency to force the patched version (vitest 4.1.6 still resolves to the vulnerable vite@6.3.5 without this)

Resolves 8 vulnerabilities detected by pnpm audit:

  • 2 high: picomatch ReDoS (GHSA-c2c7-rcm5-vvqj), vite arbitrary file read via WebSocket (GHSA-p9ff-h696-f583)
  • 4 moderate: vite path traversal, Windows fs.deny bypass, postcss XSS, picomatch method injection
  • 2 low: vite middleware file serving issues

All vulnerabilities were in dev-only dependencies (not shipped). pnpm audit now reports clean.

Test plan

  • pnpm audit reports no vulnerabilities
  • pnpm test passes with 100% coverage
  • Pre-commit hooks pass (type-check, format, lint)

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
@threeal threeal self-assigned this May 18, 2026
@threeal threeal added this to the Version 3.5.0 milestone May 18, 2026
@threeal threeal added dependencies Pull requests that update a dependency file bug Something isn't working labels May 18, 2026
@threeal threeal merged commit b660982 into main May 18, 2026
1 check passed
@threeal threeal deleted the fix/vulnerable-dependencies branch May 18, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant