Repository navigation
Closed
Reject Vite+ install script if the
@voidzero-dev/vite-plus-cli-* package does not have provenance#1826Feature
Copy link
Description
Description
Reject Vite+ install script (https://vite.plus, https://vite.plus/ps1) if the @voidzero-dev/vite-plus-cli-* package does not have provenance.
Also reject vp upgrade for the same case.
These will make attacking viteplus more difficult.
Suggested solution
Add checks here:
vite-plus/packages/cli/install.sh
Lines 927 to 934 in b48e0a0
# Create temp directory for extraction local platform_temp_dir platform_temp_dir=$(mktemp -d) download_and_extract "$platform_url" "$platform_temp_dir" 1 # Copy binary to BIN_DIR cp "$platform_temp_dir/$binary_name" "$BIN_DIR/" chmod +x "$BIN_DIR/$binary_name" vite-plus/packages/cli/install.ps1
Lines 524 to 531 in b48e0a0
Invoke-WebRequest -Uri $platformUrl -OutFile $platformTempFile # Create temp extraction directory $platformTempExtract = Join-Path $env:TEMP "vite-platform-$(Get-Random)" New-Item -ItemType Directory -Force -Path $platformTempExtract | Out-Null # Extract the package & "$env:SystemRoot\System32\tar.exe" -xzf $platformTempFile -C $platformTempExtract
And for update:
let result = install_platform_and_main(
Alternative
No response
Additional context
No response
Validations
- Read the Contributing Guidelines.
- Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- Check that there isn't already an issue requesting the same feature.
Reacted by Connor Shea and Denis
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Type
Fields
Priority
None yet
Start date
None yet
Target date
None yet
Effort
None yet
Activity
kazupon commentedon Aug 13, 2026
I'll try to fix this issue.
feat(install): require npm provenance for platform packages (voidzero…