fix(security): 修复 Dependabot 安全告警 (pgx + 前端依赖)#414
Merged
Conversation
修复 GHSA-9jj7-4m8r-rfcm (CVE-2026-33816, critical, 内存安全) 和 GHSA-j88v-2chj-qfwx (CVE-2026-41889, low, SQL 注入)。 pgx v5.9.x 要求 go 1.25.0,因此一并把 go.mod、CI 工作流、 Dockerfile 中的 Go 版本声明从 1.24 抬到 1.25。
通过 npm audit fix 在 semver 范围内升级 lockfile,未改 package.json: - rollup 4.57→4.60 修复路径穿越文件写入 (GHSA-mw96-cpmx-2vgc) - vite 6.4.1→6.4.2 修复路径穿越与 WS 文件读取 - minimatch 3.1.2/9.0.5→3.1.5/9.0.9 修复 ReDoS - picomatch 2.3.1/4.0.3→2.3.2/4.0.4 修复方法注入与 ReDoS - flatted 3.3.3→3.4.2 修复原型污染 - lodash/lodash-es 4.17.23→4.18.1 修复模板注入与原型污染 - postcss 8.5.6→8.5.14 修复 XSS npm audit 已确认 0 vulnerabilities。
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.
Summary
闭环当前 GitHub Dependabot 全部 8 条 open 告警,并附带修复本地
npm audit多发现的 4 条 npm 漏洞,共 12 条。github.com/jackc/pgx/v55.6.0 → 5.9.2,闭环 CVE-2026-33816(critical, 内存安全)与 CVE-2026-41889(low, dollar-quoted SQL 注入)。pgx v5.9.x 要求go 1.25.0,因此一并把go.mod、3 份 release workflow(go-version: 1.25.x)和Dockerfile(golang:1.25-alpine)的 Go 版本声明从 1.24 抬到 1.25。npm audit fix(不带--force)在 semver 范围内更新web/package-lock.json,web/package.json未变。关键升级:rollup 4.57→4.60(路径穿越)、vite 6.4.1→6.4.2(路径穿越 + WS 任意文件读)、minimatch 3.1.2/9.0.5→3.1.5/9.0.9(ReDoS)、picomatch 2.3.1/4.0.3→2.3.2/4.0.4(方法注入 + ReDoS)、flatted 3.3.3→3.4.2(原型污染)、lodash/lodash-es 4.17.23→4.18.1(模板注入 + 原型污染)、postcss 8.5.6→8.5.14(XSS)。验证
go build ./...exit 0go vet ./...exit 0go test ./...通过(仓库目前无 Go 测试用例)npm auditfound 0 vulnerabilitiesnpm run buildexit 0,dist 产物大小与既有一致npm run lint:checkexit 0npm run type-checkexit 0Test plan
golang:1.25-alpine成功构建备注