Commit 26b72e0
`Validate Package Dependencies` 的 OSV-Scanner 在 pnpm-lock.yaml 上命中
GHSA-55q2-fjhq-7xh7(5.1 medium):dompurify 的 IN_PLACE hook 移除会留下
一棵仍可执行的 detached subtree(XSS)。公告有 fixed version(3.4.13),
按 osv-scanner.toml 抬头写明的纪律,这类一律「take the fix」,不走豁免。
dompurify 是 mermaid 的传递依赖(apps/docs 声明 mermaid ^11.16.0,
mermaid@11.16.1 声明 dompurify ^3.3.3),没有任何工作区包直接声明它,
所以落点是 pnpm-workspace.yaml 的 override 块 —— 本仓不读 package.json
里的 overrides。
选择器上界放在 4.0.0 这个 major 边界而不是 exclusive 的 fixed version:
写成 `<3.4.13` 会在 3.4.13 自己被公告的那天静默失配(undici 7.28.0 与
brace-expansion 5.0.8 两具活体标本,#4961 / #5032)。以后只挪 target。
Claude-Session: https://claude.ai/code/session_01BDmDsu2575gDxeMCxXhDE3
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5d022a1 commit 26b72e0
2 files changed
Lines changed: 23 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
0 commit comments