Visit the Wiz Whimzical Shop at AWS re:Invent
Vulnerability DatabaseCVE-2026-137191

CVE-2026-137191: 
JavaScript vulnerability analysis and mitigation

Overview

CVE-2026-137191 is a code execution vulnerability in Vite+ (vite-plus), a unified web development toolchain by VoidZero Inc., caused by downloading and executing the pinned pnpm package manager without integrity verification. Affecting versions 0.2.9 through 1.5.0 (inclusive), the flaw allows an attacker who controls a repository's .npmrc to redirect the pnpm download to an attacker-controlled registry, resulting in arbitrary code execution. The vulnerability was discovered and reported by researcher arkmarta, first published on November 9, 2026, and publicly disclosed on November 30, 2026. It carries a CVSS v3.1 base score of 7.8 (High) (GitHub Advisory, VoidZero Advisory).

Technical details

The root cause is classified as CWE-494 (Download of Code Without Integrity Check) and CWE-829 (Inclusion of Functionality from Untrusted Control Sphere). In vp_setup/src/install.rs:294, the download_package_manager function is called with None as the expected hash argument, meaning the download helper in vp_pm_cli/src/request.rs:563-568 skips digest comparison entirely rather than failing — the download succeeds unconditionally. Compounding this, Vite+ resolves npm configuration relative to the current working directory (vp_pm_cli/src/config.rs:50-112), so a .npmrc file committed at the root of a cloned repository is loaded as the project-layer configuration and takes precedence over user or global settings, allowing an attacker to specify an arbitrary registry URL with no scheme or host restriction. The downloaded tarball's entry point (bin/pnpm.cjs) is then executed directly by Vite+ (vp_setup/src/install.rs:301-380) before any dependency installation or build-script approval occurs. Notably, Vite+ does verify its own release archive, making this an internal inconsistency rather than a missing capability (VoidZero Advisory, GitHub Advisory).

Impact

Successful exploitation results in arbitrary code execution with the privileges of the developer or CI build account that invoked the vp command. The attacker can read any credentials, tokens, or files accessible to that account, modify writable resources, and disrupt installs and builds. The attack is particularly dangerous in ephemeral CI/CD environments (e.g., GitHub Actions runners) where setup has not yet completed and the pnpm cache is empty — conditions that apply to every new install, every upgrade, and every fresh CI runner (VoidZero Advisory, GitHub Advisory).

Exploitability

A proof-of-concept exploit is publicly documented in the GitHub Security Advisory, demonstrating the full attack chain with bash commands and expected output. The PoC shows that running vp --version inside a repository containing a malicious .npmrc triggers a single request to the attacker's registry (GET /pnpm/-/pnpm-10.34.7.tgz) and executes the substituted payload. No authentication or elevated privileges are required from the attacker; only user interaction (cloning and running a vp command) is needed. The EPSS score is 0.0 at time of publication, and there is no evidence of in-the-wild exploitation or CISA KEV catalog listing as of the disclosure date (VoidZero Advisory, GitHub Advisory).

Exploitation steps

  1. Set up attacker-controlled registry: Deploy an HTTP server that responds to requests for /pnpm/-/pnpm-10.34.7.tgz with a crafted npm tarball. The tarball contains a package/bin/pnpm.cjs script with the malicious payload (e.g., writing a marker file, exfiltrating credentials, or establishing a reverse shell).
  2. Craft the malicious repository: Create or fork a repository and add a .npmrc file at the root pointing to the attacker-controlled registry:
    printf 'registry=%s\n' "$REG" > victim-repo/.npmrc
    printf '{"name":"demo-app","version":"1.0.0","private":true}\n' > victim-repo/package.json
  3. Social engineer the victim: Trick a developer or CI pipeline into cloning the malicious repository. This could be via a pull request, a dependency, or a shared project template.
  4. Trigger the vulnerable setup path: The victim runs any vp command (e.g., vp --version, vp install) inside the cloned repository on a fresh or upgraded Vite+ installation where pnpm is not yet cached.
  5. Vite+ fetches from attacker registry: Vite+ reads the project-layer .npmrc, resolves the registry to the attacker's server, and issues GET /pnpm/-/pnpm-10.34.7.tgz without any integrity check.
  6. Payload executes: Vite+ extracts the tarball and executes bin/pnpm.cjs as the invoking user account, achieving arbitrary code execution before any dependency installation or build-script approval (VoidZero Advisory, GitHub Advisory).

Indicators of compromise

  • Network: Unexpected outbound HTTP/HTTPS requests from a developer workstation or CI runner to an unfamiliar registry host for the path /pnpm/-/pnpm-10.34.7.tgz (or other pnpm version tarballs) during a vp command invocation; DNS lookups for non-standard npm registry domains originating from the build environment.
  • File System: Presence of a .npmrc file in a cloned repository root containing a registry= entry pointing to an external or unfamiliar host; unexpected files written to the Vite+ home directory (VP_HOME) or adjacent paths by the pnpm bootstrap process; marker files or scripts created in writable directories by the bin/pnpm.cjs payload.
  • Logs: CI/CD build logs showing a GET request to an unexpected registry URL for a pnpm tarball during the Vite+ setup phase; build failures or unexpected output immediately after the pnpm download step in vp command output.
  • Process: Unusual child processes spawned by the vp binary or Node.js (e.g., curl, wget, bash, network utilities) during the setup phase before dependency installation completes (VoidZero Advisory).

Mitigation and workarounds

Upgrade Vite+ to version 1.5.1 or later immediately. The fix (PR #3400, commit a110977) adds integrity verification of the downloaded pnpm bootstrap against a hash pinned in the CLI binary, and caches verified installs in a content-addressed directory under a .verified-v1 namespace — a different pin or registry will trigger a fresh, independently verified download. As a workaround prior to upgrading, review any .npmrc files in repositories before running vp commands, and avoid running vp in untrusted repositories on fresh or upgraded installations. In CI/CD environments, enforce registry pinning at the pipeline level and pre-seed the pnpm cache to avoid triggering the vulnerable download path (v1.5.1 Release, Fix PR #3400, GitHub Advisory).

Community reactions

The vulnerability was shared on Mastodon by TheHackerWire and on Bluesky shortly after disclosure, indicating moderate community awareness. The advisory was reviewed and published to the GitHub Advisory Database on December 1, 2026. No major vendor statements beyond VoidZero's own advisory and patch release have been identified (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-140097CRITICAL9.1
  • JavaScript logoJavaScript
  • vite
NoYesNov 30, 2026
CVE-2026-140010HIGH8.7
  • JavaScript logoJavaScript
  • html-minifier
NoYesNov 30, 2026
CVE-2026-140008HIGH8.7
  • JavaScript logoJavaScript
  • minimatch
NoYesNov 30, 2026
CVE-2026-140102HIGH7.5
  • JavaScript logoJavaScript
  • http-proxy-middleware
NoNoNov 30, 2026
CVE-2026-140103MEDIUM5.4
  • JavaScript logoJavaScript
  • http-proxy-middleware
NoYesNov 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management