fix(security): upgrade vite to ^6.4.2 — fix Arbitrary File Read via WebSocket [HIGH]#6
Open
fix(security): upgrade vite to ^6.4.2 — fix Arbitrary File Read via WebSocket [HIGH]#6
Conversation
…WebSocket [npm-audit:c003596a52017408]
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.
Security Fix: Vite Arbitrary File Read via WebSocket (HIGH)
Scanner & Findings
Vulnerability Fixed
What Changed
viteis a direct devDependency. The installed version was6.4.1, which is in the vulnerable range>=6.0.0 <=6.4.1.Updated the
viteversion specifier inpackage.jsonfrom^6.2.0to^6.4.2, then rannpm install. The lockfile now resolves vite at6.4.2.Why This Is Safe
vite uses semantic versioning. Moving from 6.4.1 to 6.4.2 is a patch release — no breaking changes. The project's existing build configuration and plugins remain compatible.
Manual Verification Steps
npm ci.npm ls viteshows version 6.4.2.npm audit— the vite advisory GHSA-p9ff-h696-f583 should no longer appear.npm run buildto confirm the build still succeeds.npm run devand verify the dev server starts correctly.Scan Run Reference
Scan date: 2026-04-28, commit 8f4e82e. Full summary: VULN-2 scan artifacts.