Merged
Conversation
Agent-Logs-Url: https://github.com/xerrors/Yuxi/sessions/93769670-86db-4d94-9a1d-478f82ff1dd5 Co-authored-by: xerrors <35524243+xerrors@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix critical/high CVEs found in dependencies
修复前端依赖高危漏洞:锁定 flatted / lodash-es 到安全版本
Apr 7, 2026
xerrors
approved these changes
Apr 7, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
本 PR 通过最小范围的依赖约束与 lockfile 更新,修复前端 npm 依赖图中由 flatted 与 lodash-es 引发的高危安全告警,确保后续安装持续使用安全版本。
Changes:
- 在
web/package.json增加pnpm.overrides,强制约束传递依赖flatted@3.4.2、lodash-es@4.18.1 - 更新
web/pnpm-lock.yaml:写入顶层overrides,并将解析结果收敛到上述安全版本(移除旧版本条目) - 在
docs/develop-guides/roadmap.md的 0.6.1 记录中补充本次安全修复说明
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| web/package.json | 新增 pnpm.overrides,对传递依赖进行安全版本锁定 |
| web/pnpm-lock.yaml | 同步 lockfile:记录 overrides 并将解析结果更新到安全版本 |
| docs/develop-guides/roadmap.md | 记录 0.6.1 版本的依赖安全修复内容 |
Files not reviewed (1)
- web/pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DriftGuard 扫描在
npm依赖图中发现 3 个 critical/high 级别漏洞,集中在flatted@3.3.4与lodash-es@4.17.23。本 PR 通过最小范围的依赖约束与锁文件更新,消除对应风险版本。依赖约束(web/package.json)
pnpm.overrides,统一约束传递依赖版本:flatted: 3.4.2lodash-es: 4.18.1锁文件收敛(web/pnpm-lock.yaml)
overrides,确保后续安装持续生效。文档记录(docs/develop-guides/roadmap.md)
示例变更:
{ "pnpm": { "overrides": { "flatted": "3.4.2", "lodash-es": "4.18.1" } } }