fix(deps): 升级 tauri-plugin-shell 至 2.3.5 修复 CRITICAL 漏洞 (GHSA-c9pr-q8gx-3mgp)#763
Merged
Conversation
@tauri-apps/plugin-shell (npm) 与 tauri-plugin-shell (crate) 的声明下限 ——npm `^2.0.1`、crate `"2"`——都落在 GHSA-c9pr-q8gx-3mgp 影响范围 (`< 2.2.1`,CRITICAL:`open` 端点作用域校验绕过,可致 RCE)。本项目 src/lib/ipc/utils.ts 正是通过该 `open` 端点打开外链,属受影响用法。 两个 lockfile 实际已解析到 2.3.5,但清单声明的下限仍是漏洞版本,供应链 扫描(SkillSpector SC4)因此读取到 2.0.1 报警。此处仅把两侧声明下限抬到 最新安全版 2.3.5,使清单与锁定版本一致、扫描不再命中;解析版本不变,无 运行时行为变化。 Closes #668
Contributor
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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.
User description
背景 / Issue
修复 #668 —— 安全扫描(NVIDIA SkillSpector)报出
CRITICAL SC4 — @tauri-apps/plugin-shell==2.0.1已知漏洞相依。对应公告 GHSA-c9pr-q8gx-3mgp — Improper Scope Validation in the
openEndpoint oftauri-plugin-shell,CRITICAL:< 2.2.1(npm 包与 Rust crate 同一公告)2.2.1,最新:2.3.5src/lib/ipc/utils.ts正是通过该open端点打开外链,属受影响用法。根因
两个 lockfile 实际已解析到安全版
2.3.5,但清单声明的下限仍是漏洞版本:package.json"@tauri-apps/plugin-shell": "^2.0.1""^2.3.5"Cargo.tomltauri-plugin-shell = "2"(下限 2.0.0)tauri-plugin-shell = "2.3.5"package-lock.json(spec 行)"^2.0.1""^2.3.5"供应链扫描读取的是这个声明下限(
^2.0.1的 min-satisfying =2.0.1),因此命中 SC4。改动
仅把两侧声明下限抬到最新安全版 2.3.5,使清单与已锁定版本一致、扫描不再命中。
2.3.5),无运行时行为变化。验证
npm ci --dry-run:package.json ↔ package-lock.json 已同步,退出码 0。cargo update -p tauri-plugin-shell --dry-run:tauri-plugin-shell 稳定停在2.3.5,Cargo.lock无需改动。Cargo.lock、node_modules解析条目均已是 2.3.5,未变。Closes #668
PR Type
Bug fix
Description
升级 @tauri-apps/plugin-shell 至 2.3.5 修复 CRITICAL 漏洞
升级 tauri-plugin-shell crate 依赖至 2.3.5
对齐清单声明版本与 lockfile 解析版本
Diagram Walkthrough
File Walkthrough
package.json
更新 npm 插件依赖版本openless-all/app/package.json
^2.0.1更新为^2.3.5Cargo.toml
更新 Rust crate 依赖版本openless-all/app/src-tauri/Cargo.toml
"2"更新为精确安全版本"2.3.5"