commitizen / commitizen/cz-cli
Dependency security scan results + actionable upgrade path (OWASP project)
- 主要语言
- JavaScript
- 星标
- 17.5k
- 派生
- 566
- 平均合并
- 8 小时 16 分钟
- 30 天内合并 PR
- 1
描述
I ran a dependency scan on Commitizen while looking at tools that are commonly used in developer and release workflows.
For context, I’m the maintainer of an OWASP-adopted CLI called [CVE Lite CLI](https://github.com/OWASP/cve-lite-cli). It focuses on scanning lockfiles locally and surfacing actionable fixes rather than just listing advisories.
The CLI uses the existing `package-lock.json`, so no setup or API keys are needed.
What stood out:
* 48 findings in total
* includes critical and multiple high severity issues
* some vulnerabilities are in **direct dependencies**, not just transitive ones
* a few issues have clear upgrade paths, others are harder to resolve
The tool was able to suggest a concrete fix plan:
```bash
npm install minimist@1.2.6 lodash@4.18.0 semver@7.5.2 @octokit/request@5.6.3 npm@10.9.6 @babel/traverse@7.23.6
```
A couple of examples:
* `minimist@1.2.5` has a **critical vulnerability**, fix available at `1.2.6`
* `lodash@4.17.21` requires upgrading beyond the advisory hint (validated safe version is `4.18.0`)
* `semver` shows up in multiple vulnerable versions across the tree
One thing I found interesting is that advisory “fixed versions” are not always reliable. In a few cases, versions marked as fixed were still vulnerable, so the safe upgrade required additional validation.
CVE Lite CLI also has a [GitHub Action](https://github.com/marketplace/actions/cve-lite-cli), so this kind of scan can run locally during development or in CI as a lightweight dependency security check.
I’m not raising this as a strict issue to fix everything, more sharing the findings and the approach. Since `Commitizen` is used directly in developer workflows, this felt like a useful data point.
For reference, here’s a snapshot of the report view highlighting the findings and suggested fix paths:
Curious how you currently think about dependency security here, whether this kind of pre-release/local check would be useful alongside existing tooling.
Happy to share more details if helpful.
贡献指南
调研方向
首先检查 package-lock.json 和列出的依赖项发现,包括提议的升级命令和存在漏洞的版本。该 issue 未定义具体的代码更改或验收标准;只有在维护者决定是否进行升级或采用本地扫描或 CI 扫描后,该 issue 才算完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, nodejs
- 领域
- cli, security
- Issue 类型
- 缺陷
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100