Skip to content

fix(deps): bump nanoid to 3.3.18 to resolve GHSA-2v37-7h3g-55p8 - #5638

Closed
feitianbubu wants to merge 1 commit into
Wei-Shaw:mainfrom
feitianbubu:fix/nanoid-audit-3.3.18
Closed

fix(deps): bump nanoid to 3.3.18 to resolve GHSA-2v37-7h3g-55p8#5638
feitianbubu wants to merge 1 commit into
Wei-Shaw:mainfrom
feitianbubu:fix/nanoid-audit-3.3.18

Conversation

@feitianbubu

@feitianbubu feitianbubu commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

问题

CI 的 Security Scan(frontend-security)目前在所有 PR 上失败:pnpm audit --prod 报出 nanoid 的 high 级通告 GHSA-2v37-7h3g-55p8(custom generators can loop indefinitely when size is zero),且该通告不在 .github/audit-exceptions.yml 白名单中,check_pnpm_audit_exceptions.py 退出 1。

命中的是 postcss 的传递依赖 nanoid@3.3.17(< 3.3.18 受影响,3.3.18 已修复)。

修改

仅更新 frontend/pnpm-lock.yaml:nanoid 3.3.17 → 3.3.18(postcss 的版本范围 ^3.3.16 允许,无需改 package.json,也无需加审计白名单)。

验证

  • pnpm@9 install --frozen-lockfile 全新安装通过(与 CI 相同的 pnpm 大版本)。
  • 本地按 CI 同款命令复跑 pnpm audit --prod --audit-level=high --json + check_pnpm_audit_exceptions.py,输出 Audit exceptions validated.,nanoid 不再出现在审计结果中。
  • 前端 vitest i18n 套件冒烟通过。

注:本 PR 只修 frontend-security;backend-security 的失败(go1.26.5 标准库漏洞)由 #5639 修复,两个合并后 Security Scan 才会整体转绿。

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