Skip to content

[PM-41467] set min-release-age (.npmrc) - #22221

Open
dangbert wants to merge 1 commit into
bitwarden:mainfrom
dangbert:npm-release-age
Open

[PM-41467] set min-release-age (.npmrc)#22221
dangbert wants to merge 1 commit into
bitwarden:mainfrom
dangbert:npm-release-age

Conversation

@dangbert

@dangbert dangbert commented Aug 4, 2026

Copy link
Copy Markdown

🎟️ Tracking

📔 Objective

Improve the (npm) supply chain security posture of this repo by making npm install refuse by default to install a dependency (or sub-dependency) that was published within the last 4 days (this is configurable).

Threat model: if any dependency is compromised with a new malicious release published in the last 4 days, AND the user is running npm >= 11.10.0, then npm will refuse to install the package by default.

(npm < 11.10.0 doesn't support this config and will allow the install without additional protections).

In the event of such a threat, the hope is that the community will catch it and delete the published release before the 4 day mark is hit.

references:

📸 Screenshots

@CLAassistant

CLAassistant commented Aug 4, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@bitwarden-bot

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! We've added this to our internal Community PR board for review.
ID: PM-41467
Link: https://bitwarden.atlassian.net/browse/PM-41467

Details on our contribution process can be found here: https://contributing.bitwarden.com/contributing/pull-requests/community-pr-process.

@bitwarden-bot bitwarden-bot changed the title set min-release-age (.npmrc) [PM-41467] set min-release-age (.npmrc) Aug 4, 2026
@bitwarden-bot bitwarden-bot added community-pr needs-qa Marks a PR as requiring QA approval labels Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-pr needs-qa Marks a PR as requiring QA approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants