Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Published npm-shrinkwrap.json pins [email protected] with vulnerable [email protected]

已关闭
#3,642 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript, node.js

调研方向

首先定位已发布的 npm-shrinkwrap.json 的生成过程,并检查 [email protected] 是如何进入 @salesforce/cli 包的。使用 npm ci 重现一次干净安装,将生成的依赖更新到 [email protected] 或更高版本,并在发布新的 CLI 版本之前确认 tar 已不再是 7.5.19。

由索引模型根据 Issue 内容生成。

描述

bug more information required

Summary

Published @salesforce/cli packages include an npm-shrinkwrap.json that pins [email protected]. That npm release bundles [email protected], which is affected by:

[email protected] bundles the fixed [email protected].

Affected releases

I confirmed the following published CLI releases contain the same vulnerable dependency chain:

Dependency path:

@salesforce/cli
└── [email protected]
    └── [email protected]

Consumer impact

Dependabot reports this as a high-severity runtime vulnerability. Consumers cannot cleanly remediate it themselves because the published CLI shrinkwrap dictates the nested npm dependency.

I tested the following approaches:

npm update npm
Root-level npm overrides
Overrides scoped beneath @salesforce/cli
Adding [email protected] as a direct dependency
Manually updating the consuming repository's package-lock.json
None fixes a clean installation. npm ci follows the CLI's published shrinkwrap and reinstalls [email protected] and [email protected]. A manual lockfile edit can make dependency scanning appear fixed while leaving the installed package vulnerable.

Requested fix

Please update the CLI's generated shrinkwrap to use [email protected] or newer and publish a new @salesforce/cli release.

Expected dependency path:

Thank you!

主要语言
没有语言数据
星标
571
派生
80
平均合并
14 小时 43 分钟
30 天内合并 PR
5

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

forcedotcom/cli 的其他 Issue

查看 forcedotcom/cli 的全部 Issue

相似的 Issue

更多 Build System Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。