CVE-2026-137191
## 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`
Properties
- Severity
- high
- Summary
- Vite+: Code Execution via an Unverified Package Manager Download from a Repository-Named Registry
- Nvd fetched at
- 2026-12-01T02:29:07.656933+00:00
- Cvss severity
- HIGH
- Cvss score
- 7.8
- Retrieved at
- 2026-12-01T02:29:52+00:00
- Ghsa published
- 2026-12-01T01:31:44Z
- Source url
- https://github.com/advisories/GHSA-5qr3-w62x-jmwx
- Ghsa updated
- 2026-12-01T01:31:45Z
- Ghsa id
- GHSA-5qr3-w62x-jmwx
- Last source
- GitHub Advisory Database
- Score
- 7.8
- Cvss version
- 3.1
- Cve id
- CVE-2026-137191
- Cvss vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- First seen by Signal
- 2026-11-30T22:28:40+00:00
- Name
- CVE-2026-137191
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Published at
- 2026-11-30T21:17:24.900
Related Entities (4)
HAS_WEAKNESS (2)
AFFECTS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph