Vite+にリポジトリの設定経由で任意のコードを実行される脆弱性
Summary
Vite+の0.2.9から1.5.1までの版には、pnpmを検証せずにダウンロードして実行する脆弱性があります。悪意あるレジストリを指すリポジトリを開くと、開発者や build アカウントの権限で任意のコードが実行されるおそれがあります。修正版は1.5.1です。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Vite+の0.2.9から1.5.1までの版には、pnpmを検証せずにダウンロードして実行する脆弱性があります。悪意あるレジストリを指すリポジトリを開くと、開発者や build アカウントの権限で任意のコードが実行されるおそれがあります。修正版は1.5.1です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| voidzero-devvite-plus | — | Not listed |
| npmvite-plus |
< 1.5.1→ 1.5.1 |
1.5.1 |
Original description The description as published by the source.
Vite+ is a unified toolchain and entry point for web development. From 0.2.9 until 1.5.1, the global vp setup path downloads the pinned pnpm package manager through download_package_manager and executes it without comparing the bytes to a trusted digest. A cloned repository's .npmrc can select an attacker-controlled registry, allowing substituted pnpm bytes to run before dependency installation or build-script approval during a new installation, upgrade, or ephemeral CI setup when the manager is not already cached. The resulting code executes as the developer or build account and can read credentials and files available to that account, modify writable resources, or disrupt installs and builds. Verification of the Vite+ release archive does not cover this separate managed package-manager download. This issue is fixed in version 1.5.1.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com