Vite+ trusted a repository's registry before it trusted the developer
Two Vite+ advisories show how a cloned repository can influence code that runs on a developer workstation. CVE-2026-137190 covers shell command injection through an unvalidated registry version string in vp env use. CVE-2026-137191 covers an unverified package-manager download from a registry named in project configuration. Vite+ 1.5.1 fixes both issues.
The repository controls more than source
Vite+ can read npm configuration relative to the current project. A checked-in .npmrc can set a registry that the repository author controls. In the first issue, vp env use asks that registry for the latest version and prints the returned value into shell export statements. In the second, Vite+ downloads a pinned pnpm build and executes it without comparing a digest. The malicious response or download can run before the developer installs project dependencies.
This bypasses the common assumption that the project contains no install script. The command may look routine, such as vp --version, and the malicious behavior can occur while the tool prepares its own runtime. The attack depends on cloning or opening an untrusted repository and running the command, but that is a normal developer workflow.
Fixed versions are necessary, not sufficient
The patched release is Vite+ 1.5.1. Update local installations and CI images, then verify the version from the actual binary. Rebuild caches and runner images that may contain an older copy. Check package-manager wrappers and global shims because a fixed project dependency does not repair a stale global command.
Review every repository that can set a registry. Pin approved registries in user and global configuration, reject project-level overrides that differ from policy, and block outbound package-manager traffic to unapproved hosts. Treat .npmrc, package-manager settings, and tool-bootstrap files as security-sensitive code. A code review should show the registry change and the account that added it.
Assume execution during triage
If an affected Vite+ version ran in a repository with an untrusted registry, assume the development environment may have executed downloaded code. Rotate tokens available to the tool and the shell: source-control credentials, package registry tokens, cloud sessions, signing keys, and deployment secrets. Review shell history, process telemetry, new files, persistence, and outbound connections from the workstation or runner.
Do not run the repository again to see what happens. Preserve the .npmrc, lockfiles, Vite+ version, package-manager cache, and relevant command history. Recreate the workstation or runner from a trusted image if the evidence suggests execution.
A build-tool boundary
Vite+ verifies its own release archive, but the vulnerability existed in a separate managed download and a shell-output path. That inconsistency is the practical lesson. Supply-chain controls need to cover every executable the tool fetches, not only the first installer.
Developers need a safe way to inspect untrusted projects. A disposable environment with no reusable credentials and an egress policy is more useful than asking people to recognize every dangerous command.
