Skip to content

fix(ci): 修复 1.x.x 特性列车两处安全门——perceives Security Audit 新披露漏洞与 influence fast-uri HIGH - #1125

Merged
ThreeFish-AI merged 2 commits into
feature/1.x.xfrom
fix/ci-security-gates-1124
Sep 5, 2026
Merged

fix(ci): 修复 1.x.x 特性列车两处安全门——perceives Security Audit 新披露漏洞与 influence fast-uri HIGH#1125
ThreeFish-AI merged 2 commits into
feature/1.x.xfrom
fix/ci-security-gates-1124

Conversation

@ThreeFish-AI

Copy link
Copy Markdown
Owner

背景

  • 本次变更要解决的问题:PR #1124(feature/1.x.x → master 特性列车)CI 有两个门失败,均为新披露的 advisory 打在既有/新增 pin 上,与本列车业务代码无关:
    1. Security Auditnegentropy-perceives-ci.yml → pip-audit):aiohttp / cryptography / pip / pyasn1 / pypdf 五包各有新披露漏洞(均有修复版本);transformers CVE-2026-9856 修复版 5.10.0 不可达。
    2. Dependency Review:本列车新增的分集工程 lockfile 带入 fast-uri@3.1.5,命中 4 项 GHSA HIGH(host confusion / SSRF)。
  • 关联上下文#1124 · 先例 #1093(同类 Security Audit 门修复)。

核心变更

1. perceives Security Audit 门(c0e84445)

  • uv lock 定向升级 5 包(解析零冲突):aiohttp 3.14.1→3.14.3(PYSEC-2026-3545/3546/3547)、cryptography 49.0.0→50.0.1(PYSEC-2026-3552)、pip 26.1.2→26.2.1(PYSEC-2026-3721)、pyasn1 0.6.3→0.6.4(PYSEC-2026-3455/3456/3457)、pypdf 6.13.3→6.17.0(PYSEC-2026-3610..3613/3655/3656 + CVE-2026-84309/84310/84311/82398)。
  • transformers CVE-2026-9856GHSA-xrqw-3rrv-vx5w)有据 ignoresave_pretrained 路径穿越任意写文件,修复版 5.10.0;transformers 被 pyproject 硬锁 >=4.56.1,<5.0.0(marker-pdf 1.10.2 / surya-ocr 0.17.1 在 5.x 运行时崩),与文件内既有 PYSEC-2025-211..218 / CVE-2026-4372 同约束、同威胁模型(本项目仅加载第一方模型 artifact,攻击向量不可达),注释完整落档。

2. influence Dependency Review 门(ff0d8527)

  • 8 个分集 + 骨架模板共 9 个 pnpm-lock.yaml 将 fast-uri 3.1.5→3.1.7GHSA-jqff-g426-hqxp / GHSA-fph4-wmhf-6fwf / GHSA-f65p-4m7j-42xc / GHSA-5jgf-p345-68v8 均在 3.1.6 修复);3.1.7 满足 ajv@8.20.0 的 ^3.0.1 依赖范围,纯 lockfile 定向升级、无 manifest 变更。
  • 模板 lockfile 遵循其「只有 package.json.tmpl、无实体 manifest」的约定:经临时物化 manifest 由 pnpm 规范生成后移除临时文件,与 8 个分集 diff 逐字节同构。

风险与回滚

  • 主要风险
    1. 五个 Python 包升级均为 patch/minor 级且在各自依赖范围内,其中 pypdf 6.13→6.17 跨三个 minor(PDF 解析库,处理不可信输入面较宽,升级即修复 10 项 CVE);
    2. fast-uri 3.1.7 为 patch 级,仅 ajv(JSON Schema 校验)传递依赖,分集工程不直接消费其解析行为。
  • 回滚方式git revert 两个提交即可,均为纯依赖锁/ignore 清单变更,无代码与 schema 变更。

验证证据

  • 锁一致性uv lock --check 通过(313 包解析成功);5 个升级包经 OSV API 逐一验证新版本 0 已知漏洞
  • 根 lockfile 零污染git status 确认根 pnpm-lock.yaml 不在变更集(遵循「嵌套工程须 --ignore-workspace」既有约束)。
  • lockfile diff 干净:9 个 pnpm-lock 均恰 4 行变更(fast-uri 三处:packages 条目/依赖引用/snapshots 条目),无其它包被牵连升级。
  • pre-commit 全绿:两批提交 hooks 全部 Passed。
  • 最终以 #1124 合入本 PR 后的 CI 复跑为准。

影响范围

  • apps/negentropy-perceivesuv.lock(5 包)+ .github/workflows/negentropy-perceives-ci.yml(+1 条有据 ignore)。
  • apps/negentropy-influence:9 个 pnpm-lock.yaml(8 分集 + 骨架模板),每文件仅 fast-uri 相关 4 行。
  • 不触及任何业务代码、pyproject 约束与 manifest。

Next Best Action

  • 本 PR 合入后确认 #1124 两门转绿。
  • 跟踪 marker-pdf / surya-ocr 上游适配 transformers 5.x 进展(pyproject 注释跟踪点 docling #3090),届时一并解锁 CVE-2026-9856 / CVE-2026-4372 等 ignore。
  • pnpm-lock.yaml 的 fast-uri@3.1.2 亦在 GHSA-7p8r-x3mc-p8w7 受影响范围(>=3.0.0,<3.1.5),因不在本次 review delta 未触发门控;可在下次触碰根锁的 PR 顺手升级。

…9856 有据 ignore;

- uv lock 定向升级:aiohttp 3.14.3 / cryptography 50.0.1 / pip 26.2.1 / pyasn1 0.6.4 / pypdf 6.17.0(新披露 advisory,OSV 验证新版本零漏洞)
- transformers CVE-2026-9856(save_pretrained 路径穿越任意写文件)修复版 5.10.0 受 marker-pdf/surya <5.0.0 硬锁制约,按既有威胁模型(仅加载第一方模型 artifact、不加载不可信 HF 仓库)入 ignore 清单

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
…复 Dependency Review 门 4 项 HIGH;

- GHSA-jqff-g426-hqxp / GHSA-fph4-wmhf-6fwf / GHSA-f65p-4m7j-42xc / GHSA-5jgf-p345-68v8(host confusion 与 SSRF)均在 3.1.6 修复
- 3.1.7 满足 ajv@8.20.0 的 ^3.0.1 依赖范围,纯 lockfile 定向升级;模板 lockfile 经临时物化 manifest 由 pnpm 规范生成,根 pnpm-lock.yaml 零变更

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
@ThreeFish-AI
ThreeFish-AI merged commit fb8fb1a into feature/1.x.x Sep 5, 2026
11 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.

1 participant