Skip to content

pnpm cooldown: 不抓取一星期内最新版 (pnpm: 提升至 10.33.0 以使用 minimumReleaseAge 避免 supply chain 攻击)#1341

Merged
CodFrm merged 3 commits intomainfrom
security/pnpm-add-minimum-release-age
Apr 8, 2026
Merged

pnpm cooldown: 不抓取一星期内最新版 (pnpm: 提升至 10.33.0 以使用 minimumReleaseAge 避免 supply chain 攻击)#1341
CodFrm merged 3 commits intomainfrom
security/pnpm-add-minimum-release-age

Conversation

@cyfung1031
Copy link
Copy Markdown
Collaborator

@cyfung1031 cyfung1031 commented Apr 7, 2026

Checklist / 检查清单

  • Fixes mentioned issues / 修复已提及的问题
  • Code reviewed by human / 代码通过人工检查
  • Changes tested / 已完成测试

Description / 描述

避免再次因为 axios 那种 npm 包木马注入,加设一星期最新包不存取设定。
不用怀疑这种做法了。pnpm 以外的管理工具都有类似的设定。
minimumReleaseAge 是 10.16 加的
和 npm 包同一道理,要指定版本不自动使用最新版来避免攻击。 10.33.0 是可信任的

Screenshot 2026-04-08 at 5 33 28

Screenshots / 截图

@cyfung1031 cyfung1031 changed the title pnpm cooldown: 不抓取一星期内最新版 pnpm cooldown: 不抓取一星期内最新版 (pnpm: 提升至 10.33.0 以使用 minimumReleaseAge 避免 supply chain 攻击) Apr 7, 2026
@CodFrm
Copy link
Copy Markdown
Member

CodFrm commented Apr 8, 2026

一星期是不是也有点短了?我觉得可以延长到一个月

@CodFrm CodFrm merged commit 2447ce3 into main Apr 8, 2026
2 of 3 checks passed
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