Skip to content

security: protect against npm supply chain attacks (INC-227) - #108

Open
fkroockmann wants to merge 2 commits into
masterfrom
security/npmrc-supply-chain-INC-227
Open

security: protect against npm supply chain attacks (INC-227)#108
fkroockmann wants to merge 2 commits into
masterfrom
security/npmrc-supply-chain-INC-227

Conversation

@fkroockmann

Copy link
Copy Markdown

Context

Mitigation for supply chain attacks on npm packages — ref INC-227.

Node version in this repo (`` from ) is below 24.14.1, which is required for min-release-age. As an alternative mitigation we use the `before` directive: npm will refuse to install any package version published after the configured date.

Changes

  • Add before=2026-05-04 to .npmrc (today − 7 days)
  • Add a "Supply chain protection" section to README.md explaining how to update the date when bumping dependencies

How to upgrade dependencies later

Update the before date in .npmrc to a value at most today − 7 days. The 7-day buffer lets the community detect and unpublish compromised packages before they end up in our install.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant