All vulnerabilities

npm

CVE-2026-137191

Vite+: Code Execution via an Unverified Package Manager Download from a Repository-Named Registry

Severity
High 7.8
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
1.5.1
Exploit chance
0.3% in the next 30 daysHigher than 25% of CVEs. EPSS by FIRST, 1 Dec 2026
Weakness
CWE-494CWE-829
Attack
Needs local access · No login needed · Needs someone to click or open something
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Also known as
GHSA-5qr3-w62x-jmwx
Sources
OSV.dev and GitHub

Description

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.

The third argument of the download call is the expected hash, and the literal absent value is passed:

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…

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
vite-plusnpm · osv:npm:vite-plus
  • Every version before 1.5.1

About vite-plus

Weekly downloads (npm)
5,323,813npm, 1 Dec 2026

Vulnerabilities in vite-plus

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
2
Known exploited
0
Search the list for vite-plus

References