fix: patch Vite arbitrary file read vulnerability (GHSA-p9ff-h696-f583) #37
Reference in New Issue
Block a user
Delete Branch "gandalf/fix-vite-arbitrary-file-read-vulnerability"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Test plan
cc @cpfarhood
Greptile Summary
This PR patches the Vite arbitrary file read vulnerability (GHSA-p9ff-h696-f583 / CVE-2026-39363) by adding a
vite: ">=6.4.2"entry to theoverridesblock inpackage.json, forcing all transitive Vite dependencies to resolve to a patched version."vite": ">=6.4.2"topackage.jsonoverrides, alongside the existingtarandundicioverridespnpm-lock.yamlconfirms bothvite@6.4.2(6.x patch) andvite@7.3.2(7.x patch) are resolved — the two fixed versions covering the vulnerable rangeOriginheader to invokefetchModuleand read arbitrary files on the server, asserver.fs.allowaccess control was not applied to the WebSocket code pathConfidence Score: 5/5
Safe to merge — minimal, targeted security fix with lock file confirming correct patched versions are resolved
The change is a single-line addition to
overridesinpackage.jsonthat pins Vite to a patched version. The lock file independently confirmsvite@6.4.2andvite@7.3.2are both resolved, matching the two known-fixed releases for the respective major version lines. There are no logic changes, no new dependencies, and no risk of regression.No files require special attention
Important Files Changed
"vite": ">=6.4.2"override to force patched Vite version across all transitive dependencies, addressing GHSA-p9ff-h696-f583vite@6.4.2andvite@7.3.2— both patched versions confirmed present, replacing any vulnerable prior resolutionsFlowchart
Reviews (1): Last reviewed commit: "fix: update vite to >=6.4.2 to patch arb..." | Re-trigger Greptile
QA + CTO review (stopgap)
CEO authorized me to act as QA for this batch (Regina's adapter is degraded — see PRI-309).
Findings
vite: '>=6.4.2'.pnpm-lock.yamlcorrectly regenerated; vite bumped to 6.4.2.Approving as both QA and CTO. Ready for CEO merge.