GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Improve security defaults for `vp install` and other commands when using `npm` · Issue #1419 · voidzero-dev/vite-plus

Improve security defaults for vp install and other commands when using npm #1419

New issue
Copy link
New issue
Copy link
Open
Feature
Open
Improve security defaults for vp install and other commands when using npm#1419
Feature
Copy link
Labels
pending triage
Milestone
RC

Description

@connorshea
connorshea
opened on Apr 19, 2026
Issue body actions

Description

It'd be nice if something could be done in vite-plus specifically to ensure secure defaults if a user is using npm.

See https://nesbitt.io/2026/03/31/npms-defaults-are-bad.html for examples.

Suggested solution

For safety reasons, we should probably force vp install (when not passed a specific package to add) to map to npm ci, or at least maybe npm install --prefer-offline?

Alternative

No response

Additional context

It may also be a good idea to have vp env doctor point the user to various more-secure options as well, for example using min-release-age if not set, blocking scripts from running on-package-install (--ignore-scripts), and so on.

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 Geoffrey Parrier

Activity

  1. connorshea
    added
    pending triage
    on Apr 19, 2026
  2. connorshea
    added the
    Feature
    issue type on Apr 19, 2026
  3. fengmk2 commented on Apr 23, 2026

    @fengmk2
    fengmk2
    on Apr 23, 2026
    Member
    More actions

    @TheAlexLichter @cpojer should we set default min-release-age value to 3 days?

  4. cpojer commented on Apr 23, 2026

    @cpojer
    cpojer
    on Apr 23, 2026
    Member
    More actions

    I think 12 hours is enough, max 24 (like pnpm 11).

    I don't like it, but I think it's in everyone's best interest.

    Reacted by MK (fengmk2), Alexander Lichter and JongKyung Lee
  5. Boshen commented on Apr 28, 2026

    @Boshen
    Boshen
    on Apr 28, 2026
    Member
    More actions

    min-release-age is hard to get right, it should be easier to start with https://pnpm.io/settings#trustpolicy

    Reacted by MK (fengmk2)
  6. fengmk2
    added this to the RC milestone on Aug 6, 2026
  7. kazupon commented on Aug 13, 2026

    @kazupon
    kazupon
    on Aug 13, 2026
    Collaborator
    More actions

    Ideally, Vite+ should provide the pnpm trustPolicy, but I think that would require Vite+ to implement the same functionality that pnpm has already implemented and make it work.

    This means that since Vite+ would have to implement the trustPolicy feature itself, we would have to maintain that functionality until npm provides it.

    I believe that having Vite+ temporarily configure min-release-age would be less costly than implementing trustPolicy and is likely the best approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending triage

    Type

    Feature

    Fields

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

      Milestone

      • RC

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.