fix: patch high-severity vite CVEs and enforce npm audit in CI#71
Merged
Conversation
vite 8.0.0–8.0.15 (pulled in by vitest) had two high-severity CVEs: - GHSA-v6wh-96g9-6wx3: NTLMv2 hash disclosure via UNC path on Windows - GHSA-fx2h-pf6j-xcff: server.fs.deny bypass on Windows alternate paths Updated package-lock.json to vite 8.0.16 via `npm audit fix`. Added `npm audit --audit-level=high` as the first post-install CI step so future vulnerabilities in dev dependencies are caught automatically. https://claude.ai/code/session_01KiMW3nyqB4TYjncTEAF7AH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vite8.0.14 → 8.0.16 vianpm audit fix— resolves two high-severity CVEs that were silently present in the dev dependency tree (pulled in byvitest)npm audit --audit-level=highto CI — fails the build immediately if any high/critical vulnerability is introduced, so this can't recur undetectedVulnerability details
vite8.0.0–8.0.15 carried two high-severity advisories:server.fs.denybypass on Windows alternate pathsThese are dev-only (not shipped in the published package), but a security-headers tool carrying known CVEs in its own toolchain is worth fixing on principle.
Test plan
npm auditreports 0 vulnerabilities after fixvitest run)npm run typecheckandnpm run buildsucceednpm audit --audit-level=highbefore any other stepshttps://claude.ai/code/session_01KiMW3nyqB4TYjncTEAF7AH
Generated by Claude Code