Skip to content

security: set npmMinimalAgeGate to 7d - #16

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

security: set npmMinimalAgeGate to 7d#16
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

Build and Test | Build and Test   View in Datadog   GitHub Actions

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: c40bb35 | 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 2 potential issues.

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 c40bb35. Configure here.

Comment thread .yarnrc.yml
spec: "https://raw.githubusercontent.com/ambar/yarn-plugin-dedupe-on-install/96ffd15fdb25310613f003a2c258dfd73eaa36a1/index.js"

yarnPath: .yarn/releases/yarn-4.14.1.cjs
yarnPath: .yarn/releases/yarn-4.11.0.cjs

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

yarnPath points to missing file

High Severity

yarnPath now targets .yarn/releases/yarn-4.11.0.cjs, but that release file is not in the repository (only yarn-4.14.1.cjs is present). Any Yarn invocation that reads this config will fail before installs or tests can run.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c40bb35. Configure here.

Comment thread .yarnrc.yml
spec: bundles/@yarnpkg/plugin-unused-resolutions.js
- checksum: d1b1142e8acf30b61023df541d3405617356e65ca4b02fa949a31ab1492e70b9b627456fdcb2fba670ebfcbb7d7fc7b5f99cc62360599bf13c2295fbbe96b5e3
path: .yarn/plugins/@yarnpkg/plugin-aws-codeartifact.cjs
spec: "https://github.com/MaintainX/yarn-plugin-aws-codeartifact/releases/download/v0.22.0-mx/plugin-aws-codeartifact.js"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Removed local plugin breaks tests

Medium Severity

The root config no longer loads @yarnpkg/plugin-unused-resolutions, which this repository implements. Fixture installs under tests/ inherit this config and expect the plugin to error on unused resolutions; without it, test.js assertions no longer match real behavior.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c40bb35. Configure here.

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