Skip to content

Add min-release-age to prevent supply chain attacks - #2937

Open
judeallred wants to merge 1 commit into
mainfrom
jallred/min-release-age-npmrc
Open

Add min-release-age to prevent supply chain attacks#2937
judeallred wants to merge 1 commit into
mainfrom
jallred/min-release-age-npmrc

Conversation

@judeallred

@judeallred judeallred commented May 21, 2026

Copy link
Copy Markdown

See https://chia-network.atlassian.net/browse/SEC-1019 and #security_chat for context

Summary

  • Adds min-release-age=1 to .npmrc, telling npm to only resolve package versions published more than 1 day ago
  • Lightweight supply-chain-attack mitigation: malicious packages are typically flagged and removed within hours, so a 1-day quarantine avoids installing freshly-published compromised versions

Test plan

  • npm install still works correctly
  • npm ci still works correctly

Made with Cursor


Note

Low Risk
Low risk configuration change that only affects npm dependency resolution by avoiding newly published versions; potential impact is install failures if a required package is <1 day old.

Overview
Adds min-release-age=1 to .npmrc so npm will only resolve dependency versions published at least one day ago, reducing exposure to freshly published malicious packages.

Reviewed by Cursor Bugbot for commit 2788a28. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-authored-by: Cursor <cursoragent@cursor.com>
@judeallred
judeallred requested a review from a team as a code owner May 21, 2026 17:40
@judeallred
judeallred marked this pull request as draft May 21, 2026 18:02
@hoffmang9

Copy link
Copy Markdown
Member

@BugBot review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 2788a28. Configure here.

@judeallred
judeallred marked this pull request as ready for review May 21, 2026 20:01
@judeallred
judeallred requested a review from justinengland May 21, 2026 20:11
@github-actions

Copy link
Copy Markdown
Contributor

'This PR has been flagged as stale due to no activity for over 60
days. It will not be automatically closed, but it has been given
a stale-pr label and should be manually reviewed.'

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants