uckkk/dsh-dependency-audit
uckkk★ 0JavaScriptLast synced: 2026-08-16
依赖安全审计:OSV.dev 漏洞扫描 + npm 过期依赖检测,返回严重级/修复版本/升级幅度
README excerpt
dsh-dependency-audit · 依赖安全审计 扫描项目依赖的安全状态:① 通过 OSV.dev 查询每个依赖的已知漏洞;② 对比 npm registry 检测过期依赖。纯 Node 实现,仅需联网访问 osv.dev 与 npm registry。 提供的工具 工具 作用 audit vulnerabilities 批量查询 OSV.dev,返回受影响依赖的漏洞 ID、严重级、摘要、修复版本 audit outdated 对比已安装 vs 最新版本,返回过期依赖与升级幅度(major/minor/patch) 安装 安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-dependency-audit" 。 用法示例 说明 - 漏洞数据来自 OSV.dev(开源漏洞数据库,覆盖 GitHub Advisory 等来源),查询免费无需 key。 - 只检查已安装(能解析出确切版本)的依赖; node modules 里解析不到的依赖会跳过。 - 与 dsh-license-guard (许可证合规)、 dsh-secret-scan (密钥扫描)构成安全三件套。
View full README on GitHub →