Skip to content

chore(deps): update dependency vite to v7.3.2 [security]#303

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/npm-vite-vulnerability
Open

chore(deps): update dependency vite to v7.3.2 [security]#303
renovate[bot] wants to merge 1 commit intomainfrom
renovate/npm-vite-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Apr 7, 2026

This PR contains the following updates:

Package Change Age Confidence
vite (source) 7.3.17.3.2 age confidence
vite (source) ^6.3.6^7.0.0 age confidence

GitHub Vulnerability Alerts

CVE-2026-39364

Summary

The contents of files that are specified by server.fs.deny can be returned to the browser.

Impact

Only apps that match the following conditions are affected:

Details

On the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import&raw, or ?import&url&inline are appended.

PoC

  1. Start the dev server: pnpm exec vite root --host 127.0.0.1 --port 5175 --strictPort
  2. Confirm that server.fs.deny is enforced (expect 403): curl -i http://127.0.0.1:5175/src/.env | head -n 20
    image
  3. Confirm that the same files can be retrieved with query parameters (expect 200):
    image

CVE-2026-39365

Summary

Any files ending with .map even out side the project can be returned to the browser.

Impact

Only apps that match the following conditions are affected:

  • explicitly exposes the Vite dev server to the network (using --host or server.host config option)
  • have a sensitive content in files ending with .map and the path is predictable

Details

In Vite v7.3.1, the dev server’s handling of .map requests for optimized dependencies resolves file paths and calls readFile without restricting ../ segments in the URL. As a result, it is possible to bypass the server.fs.strict allow list and retrieve .map files located outside the project root, provided they can be parsed as valid source map JSON.

PoC

  1. Create a minimal PoC sourcemap outside the project root
    cat > /tmp/poc.map <<'EOF'
    {"version":3,"file":"x.js","sources":[],"names":[],"mappings":""}
    EOF
  2. Start the Vite dev server (example)
    pnpm -C playground/fs-serve dev --host 127.0.0.1 --port 18080
  3. Confirm that direct /@&#8203;fs access is blocked by strict (returns 403)
    image
  4. Inject ../ segments under the optimized deps .map URL prefix to reach /tmp/poc.map
    image

CVE-2026-39363

Summary

server.fs check was not enforced to the fetchModule method that is exposed in Vite dev server's WebSocket.

Impact

Only apps that match the following conditions are affected:

  • explicitly exposes the Vite dev server to the network (using --host or server.host config option)
  • WebSocket is not disabled by server.ws: false

Arbitrary files on the server (development machine, CI environment, container, etc.) can be exposed.

Details

If it is possible to connect to the Vite dev server’s WebSocket without an Origin header, an attacker can invoke fetchModule via the custom WebSocket event vite:invoke and combine file://... with ?raw (or ?inline) to retrieve the contents of arbitrary files on the server as a JavaScript string (e.g., export default "...").

The access control enforced in the HTTP request path (such as server.fs.allow) is not applied to this WebSocket-based execution path.

PoC

  1. Start the dev server on the target
    Example (used during validation with this repository):

    pnpm -C playground/alias exec vite --host 0.0.0.0 --port 5173
  2. Confirm that access is blocked via the HTTP path (example: arbitrary file)

    curl -i 'http://localhost:5173/@&#8203;fs/etc/passwd?raw'

    Result: 403 Restricted (outside the allow list)
    image

  3. Confirm that the same file can be retrieved via the WebSocket path
    By connecting to the HMR WebSocket without an Origin header and sending a vite:invoke request that calls fetchModule with a file://... URL and ?raw, the file contents are returned as a JavaScript module.

image image

Release Notes

vitejs/vite (vite)

v7.3.2

Compare Source

Please refer to CHANGELOG.md for details.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Summary by CodeRabbit

  • Chores
    • Updated Vite build tool from version 6.3.6 to 7.0.0 across all example projects (Preact, React, Solid, Svelte, and Vue).

@renovate renovate bot added the dependencies label Apr 7, 2026
@nx-cloud
Copy link
Copy Markdown

nx-cloud bot commented Apr 7, 2026

View your CI Pipeline Execution ↗ for commit bad056c

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 31s View ↗
nx run-many --target=build --exclude=examples/** ✅ Succeeded 15s View ↗

☁️ Nx Cloud last updated this comment at 2026-04-08 19:51:42 UTC

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

🚀 Changeset Version Preview

No changeset entries found. Merging this PR will not cause a version bump for any packages.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 7, 2026

@tanstack/angular-store

npm i https://pkg.pr.new/@tanstack/angular-store@303

@tanstack/preact-store

npm i https://pkg.pr.new/@tanstack/preact-store@303

@tanstack/react-store

npm i https://pkg.pr.new/@tanstack/react-store@303

@tanstack/solid-store

npm i https://pkg.pr.new/@tanstack/solid-store@303

@tanstack/store

npm i https://pkg.pr.new/@tanstack/store@303

@tanstack/svelte-store

npm i https://pkg.pr.new/@tanstack/svelte-store@303

@tanstack/vue-store

npm i https://pkg.pr.new/@tanstack/vue-store@303

commit: bad056c

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 7, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 468270dc-f6e2-4e73-9e45-d9d82108e37d

📥 Commits

Reviewing files that changed from the base of the PR and between d6c0548 and bad056c.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (5)
  • examples/preact/simple/package.json
  • examples/react/simple/package.json
  • examples/solid/simple/package.json
  • examples/svelte/simple/package.json
  • examples/vue/simple/package.json
✅ Files skipped from review due to trivial changes (5)
  • examples/react/simple/package.json
  • examples/preact/simple/package.json
  • examples/solid/simple/package.json
  • examples/svelte/simple/package.json
  • examples/vue/simple/package.json

📝 Walkthrough

Walkthrough

The PR updates the Vite devDependency from ^6.3.6 to ^7.0.0 in five example projects: preact, react, solid, svelte, and vue.

Changes

Cohort / File(s) Summary
Vite Dependency Upgrade
examples/preact/simple/package.json, examples/react/simple/package.json, examples/solid/simple/package.json, examples/svelte/simple/package.json, examples/vue/simple/package.json
Bumped vite in devDependencies from ^6.3.6 to ^7.0.0 in each example; no other fields changed.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I nibble versions, small and deft,
From six to seven I hop and heft,
Five examples shine beneath the moon,
Build-time carrots hum a tune 🥕✨

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description provides detailed vulnerability information and change tables, but does not follow the template structure with required sections like '🎯 Changes', '✅ Checklist', and '🚀 Release Impact' as specified in the repository guidelines. Reorganize the description to match the template: add a '🎯 Changes' section summarizing the updates, complete the '✅ Checklist' with actual checkmarks, and specify '🚀 Release Impact' status (docs/CI/dev-only or changeset required).
Title check ❓ Inconclusive The title references updating vite to v7.3.2 with security fixes, but the actual changes show updating vite from ^6.3.6 to ^7.0.0 (a major version bump) in five example package.json files. The title mentions v7.3.2 but doesn't capture the scope of all changes across multiple example projects. Clarify whether the title should specify the major version bump to ^7.0.0 or provide a more comprehensive summary that better reflects the multi-project scope of dependency updates.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch renovate/npm-vite-vulnerability

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@examples/vue/simple/package.json`:
- Line 19: Update package.json dependencies so Vite and the Vue plugin are
compatible and include the security fix: change the "vite" version to at least
"^7.0.8" (to pull the patched 7.x release) and upgrade "@vitejs/plugin-vue" to a
6.x release (e.g., "^6.0.0") so its peer dependency supports Vite 7; modify the
"vite" and "@vitejs/plugin-vue" entries in package.json accordingly and run a
fresh install to verify peer compatibility.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7aafcfed-8f44-4deb-a1c1-0539d46ec4a1

📥 Commits

Reviewing files that changed from the base of the PR and between ee8326d and d6c0548.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (5)
  • examples/preact/simple/package.json
  • examples/react/simple/package.json
  • examples/solid/simple/package.json
  • examples/svelte/simple/package.json
  • examples/vue/simple/package.json

"@vitejs/plugin-vue": "^5.2.4",
"typescript": "5.6.3",
"vite": "^6.3.6",
"vite": "^7.0.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check `@vitejs/plugin-vue` peer dependency requirements for Vite compatibility
curl -s https://registry.npmjs.org/@vitejs/plugin-vue/5.2.4 | jq '.peerDependencies'

Repository: TanStack/store

Length of output: 2060


🌐 Web query:

Vite 7.0.0 security vulnerabilities server.fs.deny bypass

💡 Result:

Vite 7.0.0 is affected by at least these server.fs.deny / server.fs bypass issues:

  • CVE-2025-62522 (GHSA-93m4-6634-74q7) — On Windows, files matched by server.fs.deny can be served if the request URL ends with a backslash (\) (only when the Vite dev server is exposed to the network via --host / server.host). Affected: >= 7.0.0, <= 7.0.7. Fix: upgrade to 7.0.8+. [1][2]
  • CVE-2025-58752 (GHSA-jqfw-vq24-v9c3)server.fs allow/deny rules were not applied to HTML files, allowing reading HTML files outside the intended root/deny rules (requires the dev server be exposed to the network; also impacts the preview server). Affected: >= 7.0.0, <= 7.0.6. Fix: upgrade to 7.0.7+. [3]

Recommended remediation for Vite 7.0.0: upgrade to Vite 7.0.8 or later (covers both). [1][3]

Sources
[1] (github.com)
[2] (nvd.nist.gov)
[3] (github.com)

Citations:


🌐 Web query:

@vitejs/plugin-vue 5.2.4 compatible Vite 7.x peer dependency

💡 Result:

@vitejs/plugin-vue@5.2.4 declares a Vite peer dependency of:

  • vite: "^5.0.0 || ^6.0.0" (so not compatible with Vite 7.x without ignoring peer-dep checks). [1]

If you need Vite 7.x, you’ll need to upgrade to @vitejs/plugin-vue 6.x (which is used with Vite 7 in the wild). [2]

Sources:
[1] @vitejs/plugin-vue@5.2.4 dependency metadata (shows viteVersion: ^5.0.0 || ^6.0.0) [1]
[2] Example lockfile showing @vitejs/plugin-vue@6.0.1 used with vite@7.2.2 [2]


Critical blocker: @vitejs/plugin-vue 5.x incompatible with Vite 7.x

While the security update to Vite 7 addresses real CVEs (server.fs.deny/allow bypasses on Windows and HTML file disclosure), @vitejs/plugin-vue@^5.2.4 declares peer dependency vite: "^5.0.0 || ^6.0.0" and is incompatible with Vite 7.x. Upgrade @vitejs/plugin-vue to 6.x to proceed with Vite 7.

Note: ^7.0.0 initially resolves to versions 7.0.0–7.0.7 which contain the vulnerabilities. Upgrade to ^7.0.8 to immediately get fixed versions.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@examples/vue/simple/package.json` at line 19, Update package.json
dependencies so Vite and the Vue plugin are compatible and include the security
fix: change the "vite" version to at least "^7.0.8" (to pull the patched 7.x
release) and upgrade "@vitejs/plugin-vue" to a 6.x release (e.g., "^6.0.0") so
its peer dependency supports Vite 7; modify the "vite" and "@vitejs/plugin-vue"
entries in package.json accordingly and run a fresh install to verify peer
compatibility.

@renovate renovate bot force-pushed the renovate/npm-vite-vulnerability branch from d6c0548 to bad056c Compare April 8, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants