Repository navigation
chore(deps): update dependency vite-plus to v1 [security] - #85
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
renovate
Bot
force-pushed
the
renovate/npm-vite-plus-vulnerability
branch
from
October 26, 2026 17:18
088d66a to
b35a6c7
Compare
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.
This PR contains the following updates:
0.3.3→1.1.0launch-editor: escapeCmdArgs() omits % escaping on Windows
CVE-2026-112943 / GHSA-698v-4r3x-3vcv
More information
Details
Summary
launch-editordid not escape%on Windows when passing an argument tocmd. When an environment variable contained a malicious value, it was possible that that content to be executed.Impact
Only apps that match all of the following conditions are affected:
&or%Details
Unlike
.shfiles,.bat/.cmdfiles on Windows cannot be called directly usingchild_process.spawnand requires passing them as an argument ofcmd.exe. To do so, launch-editor escapes the arguments passed tocmd.exe. Butlaunch-editordid not escape%which is used for environment variables.Because
launch-editorchecks if the argument matches an existing filename, the attack requires the attacker to be able to place a file.&calc.exeto%ENV%) and calllaunchEditorwithsomething%ENV%.~-38%calc.exe), they can calllaunchEditorwithsomething %CMDCMDLINE:~-38%calc.exe.%CD%and the subcommand (e.g.&calc.exe), they can calllaunchEditorwith./%CD%Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
launch-editor:
fs.existsSync()existence check can be bypassed on WindowsCVE-2026-112942 / GHSA-587h-7wmj-h5pm
More information
Details
Summary
launch-editorcheckedfs.existsSync(fileName)before passing a supplied path to an editor command. On Windows, an attacker can bypass this check with a crafted path ending in\\..:line:column. This removes the requirement that the attacker be able to place a file with a malicious filename.Combined with the
%escaping issue described in GHSA-698v-4r3x-3vcv, this bypass can lead to OS command injection when an attacker controls the file argument.Impact
Only apps that runs on Windows is affected.
Details
The earlier advisory assumed that
fs.existsSync()required an attacker-controlled filename to exist. This advisory covers a bypass of that requirement.A crafted value ending in
\\..:1:1is interpreted differently bylaunch-editor-middleware,launch-editor, and Windows:launch-editor-middlewarecallspath.resolve()while the final path component is..:1:1, so it is not treated as a parent-directory component.launch-editortreats:1:1as a line-and-column suffix and removes it, leaving a path ending in\\...fs.existsSync()accepts the resulting path as the existing parent directory even though the attacker-controlled preceding component does not exist.Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors
CVE-2026-112944 / GHSA-r825-w8mm-5pxw
More information
Details
Summary
launch-editorforwarded file paths directly to editors without sanitization. If a path resembles a CLI flag, editors like Vim may interpret it as a command, potentially causing unintended file overwrites or command execution.Impact
Direct
launch-editorusersOnly apps that match all of the following conditions are affected:
+or-in the working directorylaunchEditorcan start with+or-or the user is using WSLlaunch-editor-middlewareusersOnly apps that match the following conditions are affected:
+or-in the working directoryVite users
Only apps that match the following conditions are affected:
+or-in the working directoryDetails
launchEditor(file)function passes the file name as-is to the editor if the file with that file name exists. If the file name starts with-(also+for Vim), the editor treats them as flags rather than positional arguments. For example, Vim treats arguments starting with+as an Ex command. As a result, an existing relative directory such as:is not treated as a filename when passed to Vim. Vim executes the embedded Ex command.
The following editor has a potentially destructive operation exposed to the CLI arguments:
launch-editor-middlewarev2.2.0+ converts the passed file path to an absolute path so those are not affected as long as the user is not using WSL. For WSL,launch-editorconverts the paths to relative paths internally, so those are still affected.Vite 2.0.0+ uses
launch-editor-middlewarev2.2.0+ so the WSL users are only affected.Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Vite: First 4 bytes of files outside of
server.fssetting is exposed by?vite-wasm-instanceCVE-2026-112947 / GHSA-vfpm-58rq-9qcg
More information
Details
Summary
The first 4 bytes of files outside of
server.fssetting can be returned to the browser by a request containing?vite-wasm-instance.Impact
Only apps that match one of the following conditions are affected:
--hostor theserver.hostoptionDetails
Requests containing the
?vite-wasm-instancequery are handled by the internal Wasm plugin'sloadhook. The hook removes the query and reads the resulting path directly from disk, but theserver.fschecks were not applied.After reading the file, Vite attempts to parse it as WebAssembly. When that parse fails, Node and deno throws an error that contains the first 4 bytes of the file.
PoC
Create a denied file and start an affected Vite dev server:
This will show
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Vite: Files outside
server.fs.allowcould be served when project paths match system paths on non-Windows machineCVE-2026-112946 / GHSA-rq7h-c2jc-7f22
More information
Details
Summary
The content of files outside
server.fssetting can be returned to the browser if the project imports a file path concatenated with theroot. For example, if the project references<path-to-project-root>/etc/hosts, the content of/etc/hostswas possible to be returned.The content of files outside the
server.fs.allowoption can be returned to the browser when a project imports a file whose root-relative path matches an absolute path on the host. For example, referencing<project-root>/etc/hostscould make Vite return the host's/etc/hostsfile.Impact
Only apps that meet all of the following conditions are affected:
--hostor theserver.hostoption)server.fs.denyDetails
When Vite analyzes an in-root import, it rewrites the resolved module ID to a browser URL such as
/etc/hostname. In affected versions, Vite converts that URL withfsPathFromUrland adds the result tosafeModulePaths. BecausefsPathFromUrlensures a leading slash without resolving the URL against the project root, the project URL/etc/hostnameis recorded as if it were the absolute filesystem path/etc/hostname.For a later request to
/@fs/etc/hostname, the raw-filesystem middleware interprets/etc/hostnameas an absolute path. The access check appliesserver.fs.deny, then accepts paths present insafeModulePathsbefore checkingserver.fs.allow. As a result, the request can return the host file instead of the project file that originally populatedsafeModulePaths.PoC
The following example requires Linux with a readable
/etc/hostname:In another terminal:
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Vite: Cross origin script execution through Vite custom middleware
CVE-2026-112945 / GHSA-9jrq-w75r-8gcw
More information
Details
Summary
When accessing a malicious site while a dev server using Vite is running, that site was able to load scripts in a page served by the dev server.
Impact
Only apps that match the following conditions are affected:
server.transformIndexHtml: this is normally used forserver.middlewareMode: trueorappType: 'custom'. The internal call forappType: 'spa'andappType: 'mpa'does not match this.Details
Vite's SSR guide for 8.2.1 documents the affected setup. The application embeds Vite in middleware mode, reads trusted HTML, and passes the browser's unchanged request URL to the transform:
For a development server at
http://localhost:5173, an attacker can send this URL:In Vite 8.2.1,
createDevHtmlTransformFnandgetHtmlFilenameinindexHtml.tsuse the request URL as both the transformpathand the input topath.join. The value passed topath.joinstill includes its query text.Chromium preserves
/../../package.jsonbecause it follows?and is therefore query text. Vite treats the same characters as filesystem path components, so the..components resolve the derived filename to the existing projectpackage.json.The existing file branch in
indexHtml.tschecks that filename withfs.existsSync, then preserves thehtmlPathsupplied by the attacker asproxyModuleUrl. The inline module rewrite in the same file writes that value into the generatedsrc:The generated value is a valid URL. Its leading
//tells the browser to request the module fromevil.exampleusing the Vite page's scheme. The attacker returns JavaScript for that request, and Chromium executes it in the Vite page.PoC
Observed output on Vite 8.2.1:
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
voidzero-dev/vite-plus (vite-plus)
v1.1.0: vite-plus v1.1.0: fastervp devstartup and clearer interactive promptsCompare Source
Vite+ 1.1 starts
vp devfaster and makes the interactive prompts clearer, alongside fixes forvp migrate, package-manager commands, and Windows terminals.Highlights
vp devreaches its local URL about 24% sooner and uses about 30% less memory in the parent process, because Vite+ no longer loads Vite and Vitest there before starting the dev server (#2851), by @camc314.Features
vp runsetsnpm_execpathandnpm_config_user_agentfor npm, pnpm, and Yarn, so tools such as npm-run-all2 use the project's package manager instead of falling back to npm (#2895), by @naokihaba and @tarikermis.vite@8.3.1tovite@8.3.3,rolldown@1.2.11torolldown@1.2.12,vitest@5.0.1tovitest@5.0.3,oxlint@1.85.0tooxlint@1.87.0, andoxfmt@0.70.0tooxfmt@0.72.0. The new lint and format versions can flag code that passed before, so runvp fmtafter upgrading if CI runsvp check.vp migratenow keeps the React RefreshallowCompoundComponentsoption because the bundled Oxlint supports it (#2871, #2896, #2904), by @voidzero-guard[bot].Fixes & Enhancements
vp migratekeeps Oxlint rules written with plugin aliases (such as@typescript-eslint/*,react-hooks/*, andimport-x/*) and removes rules the bundled Oxlint does not support, listing them in a warning (#2820, #2906), by @TheAlexLichter and @yusuke99.vp migrateleaves projects without a declared package manager unpinned, keeps existing declarations, and points tovp env pinwhen it infers one (#2817), by @TheAlexLichter.vp migratereports a short error for a directory withoutpackage.jsoninstead of anENOENTstack trace (#2821), by @TheAlexLichter.vp createin an existing pnpm workspace adds the catalog entries the new application needs, so installation no longer fails withERR_PNPM_CATALOG_ENTRY_NOT_FOUND_FOR_SPEC(#2808), by @SaKaNa-Y.vprscripts and managed Bun, pnpm, npm, and Yarn commands without leavingcmd.exestuck atTerminate batch job (Y/N)?(#2890), by @fengmk2.vp pack --watchon Windows rebuilds with the new options after the config file changes (#2826), by @liangmiQwQ.vp test doctorandvp test completerun the Vitest subcommands instead of being treated as test file filters (#2879), by @liangmiQwQ.vp packfinds installed Vue language tools and TypeScript Go for declaration generation, and Playwright browser provider options keep their types (#2868, #2865), by @liangmiQwQ.--offlineand--prefer-offline, and Yarn Classic accepts a single--filterforvp remove(#2775), by @jong-kyung.vp pm configin Bun projects falls back to npm, as its warning says (#2899), by @jong-kyung.vp pm approve-buildsstates that Yarn Berry disables third-party build scripts by default from 4.14.0, not in every version (#2902), by @jong-kyung.vp implodeasks you to typeboominstead ofuninstallto confirm (#2901), by @fengmk2.+, and removals a red-, with bold package names in both (#2828), by @liangmiQwQ.Refactor
semverwithverkitin the CLI, reducing the bundled CLI JavaScript by about 26 KB (#2837), by @liangmiQwQ.vp env doctor, and remove unused config migration metadata (#2876, #2894), by @jong-kyung.Docs
vp packdemo (#2843, #2844), by @TheAlexLichter and @naokihaba.vp install -g --nodeand explain whenvp env defaultre-resolves versions (#2885, #2884), by @hyunbinseo.vpxguide andvpx --help(#2864), by @SaKaNa-Y.vp installstep fromsetup-vpCI examples (#2888), by @yusuke99.vp env current --jsonexample for the split directory layout (#2886, #2887, #2889, #2891), by @jong-kyung.Chore
docs/public, and ignore the roottmpdirectory (#2832, #2831, #2860), by @liangmiQwQ.set-snapshot-versionaction (#2877), by @jong-kyung.Bundled Versions
8.3.3fea5b211.2.1245e407b0.23.05.0.31.87.07.0.20030.72.0Upgrade
New Contributors
@hyunbinseo
Full Changelog: voidzero-dev/vite-plus@v1.0.0...v1.1.0
Published Packages
@voidzero-dev/vite-plus-core@1.1.0vite-plus@1.1.0Installation
macOS/Linux:
curl -fsSL https://vite.plus | bashWindows:
Or download and run
vp-setup.exefrom the assets below.Docker:
docker run --rm -it -v "$PWD:/app" -w /app ghcr.io/voidzero-dev/vite-plus:1.1.0 vp buildRun any
vpcommand without installing it; see the Docker guide for more.v1.0.0: vite-plus v1.0.0: Vite+ 1.0 is stableCompare Source
Vite+ 1.0 is stable (announcement). This release promotes v1.0.0-rc.1 to stable with no code changes.
Notable changes since v0.3.3
v1.0.0 includes everything from the two release candidates below. See each release's notes for the full list of changes.
vp testmoves tovitest@5.0.1, and the CLI now requires Node.js^22.18.0 || ^24.11.0 || >=26.0.0.vp stagedhas new Node.js and Git minimums. Standalone installs andvp upgradeverify release provenance.run.tasksmove undercache.vp lintandvp fmtrun from a package directory now use the same config as your editor.Projects on v1.0.0-rc.1 need no changes. Projects on v1.0.0-rc.0 whose tasks set
env,untrackedEnv,input, oroutputshould runvp migrateto move those settings undercache. For a Vite+ 0.3 project, follow Upgrade from Vite+ 0.3 to 1.0 and runvp migratebefore you update the project's dependencies.Bundled Versions
8.3.139ddf7c1.2.118df42190.23.05.0.11.85.07.0.20030.70.0Upgrade
Full Changelog: voidzero-dev/vite-plus@v1.0.0-rc.1...v1.0.0
Published Packages
@voidzero-dev/vite-plus-core@1.0.0vite-plus@1.0.0Installation
macOS/Linux:
curl -fsSL https://vite.plus | bashWindows:
Or download and run
vp-setup.exefrom the assets below.Docker:
docker run --rm -it -v "$PWD:/app" -w /app ghcr.io/voidzero-dev/vite-plus:1.0.0 vp buildRun any
vpcommand without installing it; see the Docker guide for more.Configuration
📅 Schedule: (UTC)
🚦 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.