Menu

1 / 2

Vite+ trusted a repository's registry before it trusted the developer

DEV Community: vite·StarkMan·3 days ago
#zhjnFJ5i
#devtovite#devto#dev#vite#registry
Long article (487 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.