Repository navigation
Update dependency vite-plus to v1.5.1 [SECURITY] - #74
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
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:
1.4.0→1.5.1Vite+: Shell Command Injection via an Unvalidated Registry Version String
CVE-2026-137190 / GHSA-p79r-mf8q-r78h
More information
Details
Summary
vp env usechanges the active runtime for the current terminal by printing shell statements that a wrapper in the user's profile evaluates, so anything in that output is shell code. With no project file selecting a version, Vite+ asks the registry for the latest one, the registry comes from an.npmrcinside the project directory, and the reply is interpolated into an export statement unquoted and unchecked. A cloned repository can therefore name a server it controls and answer with a version string carrying shell commands, which run in the developer's shell when that command is given the documented--no-installflag.Details
The statement is built by direct interpolation, and the module documents that the wrapper evaluates it:
No shell arm quotes or escapes the value. The POSIX, fish and cmd arms add no quotes at all, and the PowerShell and Nushell arms wrap it in double quotes without escaping them (
vp_global_cli/src/commands/env/use.rs:31-35).The value is whatever the registry returned. Vite+ asks for the
latestdist tag, which is hardcoded rather than typed by the developer, and the reply is passed through unchanged (vp_global_cli/src/commands/env/package_manager.rs:173andvp_pm_cli/src/package_manager.rs:1066-1101). The only check on the way to the shell inspects the optional integrity suffix, never the version itself (vp_global_cli/src/commands/env/use.rs:76-93).The same string is validated everywhere else: the dist-tag cache parses it before reuse, and installation rejects it outright (
vp_pm_cli/src/package_manager.rs:1041and:1151). The gap is confined to the one path that prints shell code.Affected product: Vite+ (VoidZero Inc.), global
vpcommand line interface,env useAffected versions: 0.3.3 through 1.4.0 inclusive, and main at 4928bc5, confirmed on published 1.4.0 (darwin-arm64 and linux-x64-gnu)
PoC
The documented shell integration is loaded, as the installer instructs.
$REGanswers the dist-tag lookup with the payload version, and the repository ships one.npmrcline naming it.Benign controls, one variable each: an ordinary version ran nothing, a repository without that
.npmrcresolved a genuine version, and the default flow refused the string.Impact
Arbitrary commands run with the developer's permissions in their shell. The attacker reads anything that account can read and writes anything it can write, including shell startup files, and can end the shell. The session itself can be altered too, though the reproduction demonstrates only the file-system effect: its harness pipes the command through a filter, and a pipeline element runs in a subshell. Preconditions: the shell integration and
--no-install, both documented.Severity
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Vite+: Code Execution via an Unverified Package Manager Download from a Repository-Named Registry
CVE-2026-137191 / GHSA-5qr3-w62x-jmwx
More information
Details
Summary
A newly installed or upgraded Vite+ downloads the pnpm build it pins for internal use and executes it without comparing any digest (CWE-494). That happens before anything else, because Vite+ installs its own dependencies first, and it takes its registry from configuration inside the project directory. One line of
.npmrcin a cloned repository therefore makes Vite+ fetch a package manager from a server the repository author operates and run it, on a command as innocuous asvp --version, with no script in the repository. Execution precedes dependency installation, so build-script approval never applies.Details
The third argument of the download call is the expected hash, and the literal absent value is passed:
Two things turn that absent hash into code execution.
First, the check is skipped rather than failed. The download helper compares a digest only when one is supplied, on both of its branches, so passing nothing means no comparison happens at all and the download still succeeds (
vp_pm_cli/src/request.rs:563-568).Second, the registry is chosen by the repository. Vite+ reads npm configuration relative to the working directory, so an
.npmrccommitted at the root of a cloned project is loaded as the project layer and applied last, which lets it win over any user or global setting. Itsregistryvalue is then used as given, with no scheme or host restriction (vp_pm_cli/src/config.rs:50-112).What arrives is run directly as the pinned package manager: Vite+ forms the entry-point path, builds a command around it and executes it (
vp_setup/src/install.rs:301-380).Vite+ does verify its own release archive (
vp_setup/src/lockfile.rs:128), so the gap here is an inconsistency inside the product rather than a capability it lacks.Affected product: Vite+ (VoidZero Inc.), global
vpcommand line interface, setup pathAffected versions: 0.2.9 through 1.4.0 inclusive, confirmed on published 1.4.0 (darwin-arm64 SHA-1
57dd1c7, linux-x64-gnu2344ceb)PoC
Default configuration, no credentials.
$REGanswers any.tgzwith a package namedpnpmwhosebin/pnpm.cjswrites$VP_POC_MARKER. The run gets its ownHOMEandVP_HOME.One request fetched the pinned archive and its entry point ran. Benign controls, one variable each: the same command in a repository with the same manifest but no
.npmrc, and the same hostile repository against an installation that had completed setup, each wrote no marker and made no request. With the server stopped, a later run still ran the cached copy.Impact
Arbitrary code execution as the developer or build account (CWE-494, with CWE-829 for the attacker-chosen origin. The attacker reads anything that account can read, including credential files and tokens, and writes anything it can write. A manager that fails denies installs and builds. Two ordinary conditions bound it: setup has not yet completed, recorded by a marker beside the binary, and the pinned manager is not already cached. Those hold for every new install, every upgrade and every ephemeral CI runner.
Severity
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
voidzero-dev/vite-plus (vite-plus)
v1.5.1: vite-plus v1.5.1Compare Source
Vite+ 1.5.1 fixes two high-severity security issues in package-manager downloads and
vp env use, restores interactive input invp runtasks, fixesvp migrateconfig merges, and adds a reference page for each package command.Features
vite@8.3.5tovite@8.3.7. A pnpm install no longer turns every cached build into a cache miss, because Vite tells Vite Task to ignorenode_modules/.modules.yaml. It also fixes named imports from Node.js built-ins and reloads in bundled dev mode, subpath imports (#) in the dependency optimizer, SSR builds withbuild.ssr: true, and chunks shared with workers.rolldown@1.2.16torolldown@1.2.18, with module source maps that keep only the sources and names that they trace.@voidzero-dev/vite-plus-corerequirespostcss@^8.5.32, as the bundled Vite does.Fixes & Enhancements
packageManagerfield instead of the hash that the registry reports. A registry set in a project's.npmrccan no longer make Vite+ run a package manager that does not match (GHSA-5qr3-w62x-jmwx, high). Mirrors and private registries that serve the same package still pass. Each pinned version gets its own cache directory, so a project with a pinned package manager downloads it once more after the upgrade. Unpinned installs keep their current location (#3400), by @fengmk2 and @arkmarta.vp env useand other dist-tag lookups, such aspnpm@latest, accept only a valid semver version from the registry, so a registry set in a project's.npmrccan no longer put shell commands into the statements that thevp env useshell wrapper runs (GHSA-p79r-mf8q-r78h, high) (#3395), by @fengmk2 and @arkmarta.vp runstarts get a blocking stdin again when therunblock ofvite.config.tsis not statically analyzable (for example, a task command held in a constant), so interactive prompts such asvp update --interactivewait for input instead of failing withEAGAIN(#3361), by @everton-dgn.vp migratechanges only thereturnstatements of adefineConfigcallback, so functions inside the config, such as RolldowncodeSplitting.groups[].namecallbacks, keep their return values and the build no longer fails. When a callback return cannot receive the merged settings, migration keeps the standalone config files and asks for a manual merge. Pack and task cache migration also recognize configs wrapped in parentheses,as,satisfies,<T>, or!(#3325, #3372), by @jong-kyung.vp create react-routerpasses--no-git-inittocreate-react-router, so the generator's initial commit no longer stops the Vite+ setup when no Git identity is configured (#3363), by @chbaefront.env.fishcalls fish built-ins throughbuiltin, sovp env usechanges the Node.js version even when a user function has the name of a built-in such ascount(#3353), by @naokihaba.vp i<Tab>offersinstallandvp up<Tab>offersupdate. An alias stays available when no full name matches (#3337), by @nekomoyi.vp runandvprskips comment keys such as"# docs #"inpackage.jsonscripts, matches task names that contain:, and shows each task's command as its description in Zsh and Fish (#3354), by @nekomoyi.vp pm dist-tag rmworks with Yarn Berry, because Vite+ passesremovetoyarn npm tag(#3358), by @jong-kyung.Docs
Chore
@napi-rs/cli@3.10.12, let the linker reject unresolved symbols, and run Linux CI onubuntu-latestagain. Let the dependency upgrade workflow change workflow files (#3349, #3384), by @fengmk2.AGENTS.mdseparates thevite-pluspackage from the globalvpCLI and replacesCLAUDE.md, and the Node.js version RFCs describe.nvmrcsupport (#3388, #3383), by @liangmiQwQ and @hyunbinseo.import.meta.dirname, so the docs dev server no longer warns about__dirname(#3379), by @liangmiQwQ..node-versionparse tests into one table (#3355), by @Brooooooklyn.Bundled Versions
8.3.75def9361.2.18f9a49d61.0.17ff14c30.23.45.1.01.91.07.0.20050.76.0Upgrade
New Contributors
@chbaefront, @everton-dgn
Full Changelog: voidzero-dev/vite-plus@v1.5.0...v1.5.1
Published Packages
@voidzero-dev/vite-plus-core@1.5.1vite-plus@1.5.1create-vite-plus@1.5.1Installation
macOS/Linux:
curl -fsSL https://vite.plus | bashHomebrew (macOS/Linux):
See the Homebrew guide to switch from the script installer or the Homebrew Core
vite-plusformula.Windows:
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.5.1 vp buildRun any
vpcommand without installing it; see the Docker guide for more.Create a New App
Start a project without installing the global
vp:create-vite-plusrunsvp createthrough your package manager.Run the command without arguments to pick a template interactively, and see the create guide for other package managers, templates, and options.
v1.5.0: vite-plus v1.5.0Compare Source
Vite+ 1.5 adds an official Homebrew tap, runs TypeScript through Node.js with
node --import vite-plus/register, and letsvp migratemoveoxnodeand transpile-onlyts-nodescripts tovpx.Features
vpfrom the official Homebrew tap on macOS and glibc Linux (docs) (#2740), by @fengmk2:node --import vite-plus/registerruns TypeScript with the same loader asvpx, so tools that start Node.js themselves, such as the Node.js test runner, AVA, or aNODE_OPTIONSsetting, can run TypeScript files (docs) (#3208), by @fengmk2.vp migratemovesoxnodecommands and transpile-onlyts-nodecommands tovpx, and moves their Node.js preloads and literalNODE_OPTIONSvalues tovite-plus/register.ts-nodecommands that type-check stay unchanged with a warning, and thets-nodedependency is removed only when nothing still uses it. A project already on Vite+ gets this migration withvp migrate --full(docs) (#3209, #3210), by @fengmk2.vp migratewarns when it finds Rollup, Rolldown, or Jest dependencies with matching configuration, and explains how to move them to Vite, tsdown, or Vitest. The warnings show during the first migration, or withvp migrate --fullin a project already on Vite+ (#3275), by @KTrain5169 and @fengmk2.vite-plusexportsresolveConfigFromFile(configFile, options?), which resolves a config relative to the config file's directory instead ofprocess.cwd(), so editor plugins with several workspace folders load the files of the right project (#3249), by @leaysgur and @fengmk2.minimatch@11.0.4, which fixes a denial of service through glob pattern amplification (GHSA-g3hv-75wg-m249, medium), andzstd@0.13.4, which fixes RUSTSEC-2026-0391, RUSTSEC-2026-0398, and RUSTSEC-2026-0403 (#3328, #3331), by @renovate[bot] and @wan9chi.rolldown@1.2.15torolldown@1.2.16, withexperimentalInlineCommonChunksin dev mode and no crash when the working directory was deleted.tsdown@0.23.1totsdown@0.23.4:vp pack --env-filecan be repeated to load several env files, the config has a JSON schema, and?inlineCSS imported from dependencies is inlined.vitest@5.0.5tovitest@5.1.0, with--last-failedand--since-last-run, fake timers fornode:timers, and interactive review of failed snapshots. Browser mode now uses port 23315 by default.oxlint@1.89.0tooxlint@1.91.0andoxlint-tsgolint@7.0.2004tooxlint-tsgolint@7.0.2005, with the new type-aware ruletypescript/no-unsafe-enum-assignment, wider checks in rules such asarray-callback-return,no-useless-concat, andno-control-regex, and two rules moved into thesuspiciouscategory.oxfmt@0.74.0tooxfmt@0.76.0, with a new HTML formatter and JavaScript and TypeScript fixes for parentheses, array layout, and line width with wide characters.vp check, runvp fmtafter upgrading.oxlint@1.91.0can reportreact/immutabilityfor aletdeclared inside an effect and reassigned by a closure in that effect (oxc#28401).vpxandvite-plus/registerrun onoxc-node@1.0.1, which resolves a.jsxspecifier to its.tsxor.tssource.Fixes & Enhancements
vp createinto a target path that is a symbolic link removes only the link after confirmation, instead of deleting the contents of the linked directory, and the overwrite prompt names symbolic links and files (#2418), by @leslieeilsel and @fengmk2.vp imploderemoves only directories and shims that it can verify as Vite+ installations, and refuses the home directory, its parents, and filesystem roots even with--yes, so aVP_HOMEthat points at another directory cannot delete unrelated files (#3228), by @jong-kyung.vp runstarts faster in workspaces whose tasks share cacheinputandoutputpatterns, because each pattern is parsed once. In a 138-package workspace this saves about 2 seconds of CPU on every run (vite-task#887, vite-task#890), by @jasonkuhrt and @wan9chi.vp runand package-manager commands in npm projects start about 110 ms sooner, becausevpreads the npm version from npm'spackage.jsoninstead of runningnpm --version(#3259), by @magurotuna.vp migratechecks Vitest prerequisites faster in workspaces, because it parses each lockfile once (#3212), by @jong-kyung.vp upgradeinstall the global CLI's dependencies with the Node.js version that the release pins (24.22.2 for this release), instead of the latest LTS (docs) (#3269), by @fengmk2.latestalias invp env use,vp env default,vp env pin,vp env install, and.nvmrcresolves to the newest stable release instead of a27.0.0-alphabuild, andvp env list-remotemarks that stable release as latest (#3335), by @voidzero-bot[bot] and @fengmk2.VP_NODE_VERSION=22and other partial versions work for project commands such asvp build,vp run, andvp list, instead of failing with a 404 download error (#3341), by @jong-kyung.vp install -gcommands that run at the same time no longer delete each other's active package, and a command that starts while a package manager is being installed no longer runs its shim before the shim is executable (#3185, #3248), by @jong-kyung.vp configwaits and retries when another linked git worktree holds the shared git config lock, so apreparescript no longer fails when two worktrees install at the same time (#3199), by @naokihaba.vp env doctorreports Node.js resolution failures, unreadable config, a failing systemnode, and missing shims as errors and exits with code 1. When it finds only warnings, the summary saysSome warnings foundinstead ofAll checks passed(#3215, #3222), by @liangmiQwQ.vpandvpruse the named completer input, so Nushell 0.116 shows no deprecation warning, and they fall back to file completion when fish is not installed. Runvp env setup --refreshto regenerateenv.nu(#3267, #3276), by @naokihaba.vp migrateremoves thetsxdependency even when a comment still contains atsxcommand or code fence, and keeps it for JSDoc type imports that need it (#3299), by @voidzero-bot[bot] and @fengmk2.prefer-vite-plus-importslint rule and its autofix leave theviteandvitestimports thatvp migratekeeps, such asvitestimports in a package that listsvitestinpeerDependencies, sovp lint --fixno longer breaks the package for its plain Vitest users (#3192), by @Dunqing.typeAwareandunusedDisableDirectives, so editor diagnostics follow thelint.optionsinvite.config.ts. Existing editor settings stay unchanged (#2357), by @pweyck.vp dlxwith npm runs the right executable for scoped packages such as@angular/cli(#3229), by @jong-kyung.vp outdated -rin npm projects checks the workspaces instead of transitive dependencies, and requires npm 7.14.0 or later (#3240), by @jong-kyung.--prodand--devwork with npm 6, and filters that npm 6 cannot apply are rejected instead of passed through (#3251), by @jong-kyung.vp pm stagebefore npm 11.15.0, are skipped with a warning. Unsupportedpnpm dlxandpnpm packoptions, and project-only flags on managed global commands such asvp install -g, are rejected instead of silently ignored (#3286, #3285), by @jong-kyung.vp toolchain -gis short forvp toolchain --global(#3189), by @jong-kyung.execwith an empty path orexeclwith 32 or more arguments (vite-task#896, vite-task#865), by @wan9chi and @tlq5l.Refactor
Docs
vp checkstops at formatting failures, and thatvp checkflags go before file paths (#3262), by @SaKaNa-Y.vitedependency with its override during a manual npm installation, to avoidEOVERRIDE(#3157), by @SaKaNa-Y.FOO=bar commandwork in task commands on every platform (#3161), by @tartelettie./vp-setupredirect and the redirects for moved guide pages (#3271), by @fengmk2.Chore
40cb9ca; its user-facing changes are listed above (#3246, #3280), by @wan9chi.--full, stabilize pnpm setup and Bun snapshots, update the tiptap ecosystem pin, use a recorded package in the install shortcut case, and remove duplicatedevEnginesparse tests (#3193, #3196, #3242, #3305, #3301), by @liangmiQwQ, @fengmk2, @wan9chi, and @Brooooooklyn.dprintandtaploinjust init(#3234, #3310, #3250), by @renovate[bot], @leaysgur, and @fengmk2.AGENTS.md, and the Rolldown exports in the CLI bundling notes (#3207, #3238, #3316), by @fengmk2 and @liangmiQwQ.Bundled Versions
8.3.5981f07f1.2.16de6facf1.0.17ff14c30.23.45.1.01.91.07.0.20050.76.0Upgrade
New Contributors
@yamaurakazuto, @tartelettie, @pweyck, @jasonkuhrt
Full Changelog: voidzero-dev/vite-plus@v1.4.0...v1.5.0
Published Packages
@voidzero-dev/vite-plus-core@1.5.0vite-plus@1.5.0create-vite-plus@1.5.0Installation
macOS/Linux:
curl -fsSL https://vite.plus | bashHomebrew (macOS/Linux):
See the Homebrew guide to switch from the script installer or the Homebrew Core
vite-plusformula.Windows:
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.5.0 vp buildRun any
vpcommand without installing it; see the Docker guide for more.Create a New App
Start a project without installing the global
vp:create-vite-plusrunsvp createthrough your package manager.Run the command without arguments to pick a template interactively, and see the create guide for other package managers, templates, and options.
Configuration
📅 Schedule: (in timezone Europe/Chisinau)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.