Skip to content

Commit 1d6bb8d

Browse files
committed
chore: update vulnerable dependencies
1 parent 733787f commit 1d6bb8d

5 files changed

Lines changed: 309 additions & 134 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# 升级有告警的依赖
2+
3+
## 旧实现
4+
5+
web-chat 使用 Vite 5.4.21 与 esbuild 0.21.5。MCP bridge 使用 uuid 9.x。
6+
7+
## 修正
8+
9+
- 将 Vite 更新到 6.4.3 线,使用其修复后的开发服务器和 esbuild 依赖链
10+
- 将 uuid 更新到至少 11.1.1
11+
12+
## 预期
13+
14+
保留现有 Vite React 插件和 MCP bridge 的 UUID 调用方式,同时移除 Dependabot 告警。
15+
16+
## 实现结果
17+
18+
- Vite 更新到 6.4.3,锁定 esbuild 0.25.12
19+
- MCP bridge 没有 UUID 调用,移除了 uuid 与 @types/uuid 依赖
20+
- web-chat 的官方 npm 锁文件审计结果为零漏洞
21+
22+
[DONE]
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
For_Agent: https://github.com/AAswordman/Operit
3+
---
4+
5+
# 依赖安全更新
6+
7+
## 现状
8+
9+
GitHub Dependabot 在默认分支报告五个开放告警:web-chat 的 Vite 开发依赖链包含三个 Vite 告警和一个 esbuild 告警,MCP bridge 的 uuid 运行时依赖包含一个告警。
10+
11+
## 意图
12+
13+
- 将 web-chat 升级到包含 Vite 与 esbuild 修复的版本
14+
- 将 MCP bridge 的 uuid 升级到具备边界检查修复的版本
15+
- 保持现有构建工具和运行时接口,不引入功能改动
16+
17+
## 作用域
18+
19+
- web-chat/package.json
20+
- web-chat/package-lock.json
21+
- tools/mcp_bridge/package.json
22+
23+
`tools/mcp_bridge/pnpm-lock.yaml` is intentionally ignored by the repository, so it is regenerated locally from package.json and is not part of this change.
24+
25+
## 完成标准
26+
27+
- Vite 锁定版本不再命中四个开发服务器告警
28+
- esbuild 锁定版本不再命中 CORS 告警
29+
- uuid 锁定版本不再命中缓冲区边界告警
30+
31+
[DONE]

tools/mcp_bridge/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@
2020
"author": "",
2121
"license": "MIT",
2222
"dependencies": {
23-
"uuid": "^9.0.0",
24-
"mcp-client": "^1.13.1",
25-
"@modelcontextprotocol/sdk": "^1.18.2"
23+
"@modelcontextprotocol/sdk": "^1.18.2",
24+
"mcp-client": "^1.13.1"
2625
},
2726
"devDependencies": {
2827
"@types/node": "^18.0.0",
29-
"@types/uuid": "^9.0.1",
3028
"@vercel/ncc": "^0.38.1",
3129
"ts-node": "^10.9.1",
3230
"typescript": "^5.0.0"

0 commit comments

Comments
 (0)