-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
chore(deps): update dependency vite [security] #9708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
| }, | ||
| "devDependencies": { | ||
| "typescript": "5.8.3", | ||
| "vite": "^4.5.14", | ||
| "vite": "^5.4.21", | ||
| "vite-plugin-vue2": "2.0.3" | ||
| } | ||
|
Comment on lines
15
to
19
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result:
Sources: [1] NVD/GitHub advisory for CVE-2025-31486. [2] Vite/GitHub advisory summaries for CVE-2025-32395. [3] CVE details/GitHub advisory for CVE-2025-46565. 🌐 Web query:
💡 Result: Short answer: don't use the old community "vite-plugin-vue2" for Vite 5/6/7 — use the official @vitejs/plugin-vue2 (for Vue 2.7+) which is the supported plugin for Vite's modern releases. [1][2][3][4] Notes:
Sources:
🏁 Script executed: # Check if there are other package.json files or lock files in the repo that might provide context
git ls-files | grep -E "(package\.json|pnpm-lock|yarn\.lock|package-lock)" | head -20Repository: TanStack/query Length of output: 939 🌐 Web query:
💡 Result: Short answer — what happened and what to do:
Sources:
🌐 Web query:
💡 Result: Short summary — CVE-2025-62522 (published Oct 20, 2025): a path-handling bug in the Vite dev server on Windows that lets an attacker bypass server.fs.deny by requesting a URL that ends with a backslash, causing denied files (e.g., .env, *.pem) to be served if the dev server is exposed to the network. Affects multiple Vite release ranges (see below). [1][2][3] Affected versions (per advisories): Vite 2.9.18 → <3.0.0, 3.2.9 → <4.0.0, 4.5.3 → <5.0.0, 5.2.6 → <5.4.21, 6.0.0 → <6.4.1, 7.0.0 → <7.0.8, 7.1.0 → <7.1.11. Published/confirmed Oct 20, 2025. [1][2] Impact: medium severity (CVSS v4.0 = 6.0). Only exploitable when the Vite dev server is intentionally exposed to the network and running on Windows; it can disclose sensitive files normally blocked by server.fs.deny. [1][3] Mitigation:
References: 🏁 Script executed: # Check for lockfiles in the vue example directory and parent
cd examples/vue/2.7-basic && ls -laRepository: TanStack/query Length of output: 581 🏁 Script executed: # Also check the current full package.json to see dependencies context
cat examples/vue/2.7-basic/package.jsonRepository: TanStack/query Length of output: 505 🏁 Script executed: # Check if there are comments or PR description in nearby files
git log --oneline -n 20 -- examples/vue/2.7-basic/package.json 2>/dev/null | head -5Repository: TanStack/query Length of output: 113 Replace deprecated The However, 🤖 Prompt for AI Agents |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
vite-plugin-vue2 compatibility vite 5.x 6.x 7.x💡 Result:
Short answer: use @vitejs/plugin-vue2 (official) for Vue 2.7 — the older community package vite-plugin-vue2 (underfin) is legacy/maintenance-EOL and not recommended for recent Vite major releases. The official @vitejs/plugin-vue2 is the supported plugin for Vue 2.7 and is what you should use with current Vite versions; some third‑party Vue2 ecosystem plugins may still have strict peerDependencies and need updates for Vite 7 (peer‑dep conflicts have been reported). [1][2][3]
References:
🏁 Script executed:
Repository: TanStack/query
Length of output: 126
🏁 Script executed:
Repository: TanStack/query
Length of output: 2043
🏁 Script executed:
# Check the actual package.json file and its git history for context cat -n examples/vue/2.7-basic/package.jsonRepository: TanStack/query
Length of output: 645
Replace vite-plugin-vue2 with the official @vitejs/plugin-vue2.
The package uses
[email protected], which is a legacy community plugin that is no longer maintained. The official plugin is@vitejs/plugin-vue2from the Vite team, which is the recommended choice for Vue 2.7 projects. The Vite 5.x constraint appears intentional for compatibility with the legacy plugin, but you should migrate to the official plugin instead to ensure long-term support and compatibility with current and future Vite versions.🤖 Prompt for AI Agents