Dev.to Security 🔐 Cybersecurity 👁 2 📖 2 min read

CVE-2026-137191: CVE-2026-137191: Arbitrary Code Execution via Unverified Package Manager Bootstrap in Vite+ (vp)

CVE-2026-137191: Arbitrary Code Execution via Unverified Package Manager Bootstrap in Vite+ (vp) Vulnerability ID: CVE-2026-137191 CVSS Score: 7.8 Published: 2026-12-01 Vite+ (vp) versions 0.2.9 through 1.5.0 contai

CVE-2026-137191: Arbitrary Code Execution via Unverified Package Manager Bootstrap in Vite+ (vp)

Vulnerability ID: CVE-2026-137191
CVSS Score: 7.8
Published: 2026-12-01

Vite+ (vp) versions 0.2.9 through 1.5.0 contain an integrity verification flaw (CWE-494) in the internal package manager bootstrap mechanism. When initializing in an environment where the pinned pnpm distribution is not cached, the runtime queries the registry specified in the local workspace's .npmrc file and validates the downloaded tarball exclusively against the self-reported integrity digest provided by that same registry. An attacker who supplies a repository with a malicious .npmrc pointing to an attacker-controlled registry can achieve arbitrary code execution when a developer or CI runner invokes basic vp commands.

TL;DR

Vite+ (0.2.9 to 1.5.0) trusts the local project's .npmrc registry and its self-reported SHA-512 hash when bootstrapping its internal pnpm runtime, enabling arbitrary code execution via malicious repositories upon running commands like vp --help or vp install.

⚠️ Exploit Status: POC

Technical Details

  • CVE / GHSA ID: CVE-2026-137191 / GHSA-5qr3-w62x-jmwx
  • Root Cause CWE: CWE-494 (Download of Code Without Integrity Check) & CWE-829
  • CVSS v3.1 Score: 7.8 High (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
  • Affected Versions: Vite+ (vp) >= 0.2.9, < 1.5.1
  • Patched Version: 1.5.1 (Commit a1109777d5330fc1a818c5b23d131c3b8a2362bc)
  • Attack Vector: Local repository with malicious .npmrc pointing to attacker-controlled registry
  • Impact: Arbitrary Code Execution via unverified pnpm bootstrap tarball (bin/pnpm.cjs)
  • CISA KEV Status: Not Listed

Affected Systems

  • voidzero-dev/vite-plus (vp) >= 0.2.9, < 1.5.1
  • vite-plus: >= 0.2.9, < 1.5.1 (Fixed in: 1.5.1)

Code Analysis

Commit: a110977

Hardcode pinned pnpm SHA-512 integrity hash, isolate verified installs in content-keyed .verified-v1 directories, and skip symlink/hardlink entries during tgz extraction.

Mitigation Strategies

  • Enforce compile-time cryptographic integrity pinning for all bootstrapped toolchain binaries.
  • Isolate cached package manager installations using content-addressed directory structures (.verified-v1) keyed by expected integrity hashes.
  • Pre-warm Vite+ runtime caches in clean environments before processing untrusted repositories in CI/CD pipelines.
  • Audit workspace .npmrc files for unauthorized registry overrides prior to running build or setup commands.

Remediation Steps:

  1. Upgrade Vite+ to version 1.5.1 or later using 'vp upgrade' or 'npm install -g [email protected]'.
  2. Delete legacy unverified package manager caches located in ~/.vite-plus/package_manager/ (Linux/macOS) or %LOCALAPPDATA%\vite-plus\package_manager\ (Windows).
  3. Inspect repositories and CI build logs for unexpected outbound connections to non-standard npm registries.
  4. Verify that upgraded installations populate the ~/.vite-plus/package_manager/pnpm/.verified-v1/ directory.

References

Read the full report for CVE-2026-137191 on our website for more details including interactive diagrams and full exploit analysis.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.