Skip to content

fix(deps): 升级工具链与受漏洞影响的依赖,处置镜像扫描告警 - #104

Merged
tktogether merged 1 commit into
atopos31:masterfrom
tktogether:fix/deps-security-bump-upstream
Nov 26, 2026
Merged

tktogether merged 1 commit into
atopos31:masterfrom
tktogether:fix/deps-security-bump-upstream

Conversation

@tktogether

Copy link
Copy Markdown
Collaborator

背景

2026-11-16 对线上镜像的漏洞扫描报出 60 项告警(go-module + apk),全部为 "Fix available upstream",与仓库 go.mod 完全吻合(扫描镜像对应 commit 8e98ae9):

包 现版本 升级到 扫描覆盖的 fixed_in
stdlib(go 1.26.6,15 项) go 1.26.6 go 1.26.11 1.26.9 ~ 1.26.11
golang.org/x/crypto(19 项) v0.40.0 v0.59.0 0.52 ~ 0.58.1
golang.org/x/net(17 项) v0.42.0 v0.62.0 0.53 ~ 0.62
modelcontextprotocol/go-sdk(4 项) v0.2.0 v1.8.0 1.3.1 ~ 1.4.1
golang.org/x/text、x/sys(3 项) 0.27.0 / 0.34.0 0.44.0 / 0.50.0 0.41 / 0.44

关键条目:HTTP/2 连接级流控双倍退款(GO-2026-6612,CVSS 9.1)、Trailer map 内存放大(GO-2026-6603)、HPACK 编码器并发写崩溃(GO-2026-6617)、x/crypto ssh 认证约束绕过系列(CVE-2026-46595 等)、MCP go-sdk DNS rebinding / null 字符解析(GHSA-xw59-hvm2-8pj6 / GHSA-q382-vc8q-7jhj)。apk 唯一条目 zlib(CVE-2026-4738)由基础镜像处理。

改动

  • go.mod:go 1.26.6 → 1.26.11;x/crypto → 0.59.0、x/net → 0.62.0、x/text → 0.44.0、x/sys → 0.50.0、go-sdk → 1.8.0;x509roots/fallback 刷新至 2026-11-15 快照
  • Dockerfile:golang:1.26.6 → 1.26.11;alpine:latest → alpine:3.24(v3.22/3.23/3.24/edge 均已带 zlib 1.4-r0,pin 小版本同时保证基础层可复现)
  • go-sdk v0.2.0 → v1.8.0 跨大版本:唯一消费者是间接依赖 nsxno v0.1.1(llmio 自身无直接 import),编译兼容已验证;nsxno 无更高版本

验证

  • go vet ./... 无输出
  • go test -count=1 ./... 全绿(bridge / handler / middleware / models / pkg / quota / service / tools)
  • govulncheck ./... → No vulnerabilities found.

- go 1.26.6 → 1.26.11:覆盖 stdlib HTTP/2 流控、Trailer 内存放大、
  HPACK 并发、multipart 限额、x509 denylist 等修复(fixed_in 1.26.9~1.26.11)
- golang.org/x/crypto 0.40.0 → 0.59.0:ssh 系列修复(fixed_in 0.52~0.58.1)
- golang.org/x/net 0.42.0 → 0.62.0:HTTP/2 与 html 解析修复(fixed_in 0.53~0.62)
- golang.org/x/text 0.27.0 → 0.44.0、x/sys 0.34.0 → 0.50.0
- modelcontextprotocol/go-sdk 0.2.0 → 1.8.0:DNS rebinding、大小写、
  null 字符解析等修复(fixed_in 1.3.1~1.4.1);nsxno v0.1.1 编译兼容已验证
- x509roots/fallback 刷新至 2026-11-15 快照
- Dockerfile:golang:1.26.11;基础镜像 alpine:latest 固定为 alpine:3.24
  (3.24 已带 zlib 1.4-r0,同时保证构建可复现)
Copilot AI balanced review requested due to automatic review settings November 16, 2026 16:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@tktogether
tktogether merged commit d604325 into atopos31:master Nov 26, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants