Skip to content

security: set npmMinimalAgeGate to 7d - #6

Closed
OffenseTeacher wants to merge 1 commit into
masterfrom
security/npm-minimal-age-gate-7d
Closed

OffenseTeacher wants to merge 1 commit into
masterfrom
security/npm-minimal-age-gate-7d

Conversation

@OffenseTeacher

Copy link
Copy Markdown

Summary

Sets npmMinimalAgeGate: 7d in .yarnrc.yml to prevent Yarn from installing npm packages published less than 7 days ago.

This is a defence against supply chain worm attacks (Shai-Hulud, Sept 2025 / Glassworm 2026) that inject malicious post-install scripts into newly published popular packages.

Part of org-wide security hardening across all Yarn Berry repos.

@datadog-maintainx

Copy link
Copy Markdown

Pipelines

⚠️ Warnings

🚦 1 Pipeline job failed

Pull request | Test & Lint   View in Datadog   GitHub Actions

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 33e78b2 | Docs | Give us feedback!

@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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 33e78b2. Configure here.

Comment thread .yarnrc.yml

nmSelfReferences: false

npmMinimalAgeGate: 7d

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Age gate unsupported on Yarn

High Severity

This change adds npmMinimalAgeGate: 7d, but the project runs Yarn 3.6.4 via yarnPath and packageManager. That option is implemented in newer Berry releases (from 4.10 onward), not in the pinned 3.6.4 bundle, so installs are not blocked for packages younger than seven days and the intended supply-chain control does not run.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 33e78b2. Configure here.

@ptessier ptessier closed this Jun 18, 2026
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.

2 participants