Repository navigation
fix(deps): remediate Dependabot npm alerts via lockfile bumps + overrides (#1353) - #1354
Conversation
…#1353) Clears the remaining fixable npm advisories across all three lockfiles. frontend vite/top-level dompurify were already bumped on dev; this covers what's left: - src/frontend: force monaco-editor's nested dompurify 3.2.7 -> 3.4.11 via an `overrides` entry (dedups to the hoisted copy), clearing the dompurify advisory cluster against the frontend lockfile. - root: @hono/node-server 1.19.12 -> 1.19.14 (^1.19.13 override, stays on 1.x to satisfy the MCP SDK's ^1.19.9 range), ip-address 10.1.0 -> 10.2.0, qs 6.15.0 -> 6.15.3. - src/mcp-server: qs 6.15.0 -> 6.15.3, esbuild 0.28.0 -> 0.28.1. `npm audit` reports 0 vulnerabilities in all three manifests (prod and dev). Related to #1353 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Resolve by running |
Functional verification (built + ran, not just
|
| input | output |
|---|---|
<img src=x onerror=alert(1)> |
<img src="x"> |
<script>alert(1)</script>hi |
hi |
<svg><script>alert(1)</script></svg> |
<svg></svg> |
<a href="https://x.com">l</a> |
…target="_blank" rel="noopener noreferrer"… |
- ALL SANITIZE CHECKS PASS — XSS neutralized, link hook intact.
root (@hono/node-server 1.19.14, ip-address 10.2.0, qs 6.15.3) — npm ci exit 0, pins verified.
Playwright frontend-e2e (full-stack browser path) still runs in CI as the final gate — but build + the security-critical DOMPurify behavior are now proven locally, not just asserted.
vybe
left a comment
There was a problem hiding this comment.
Validated: tightly-scoped lockfile-only Dependabot remediation; supply-chain scan clean (registry-only resolved URLs, no install hooks, surgical node_modules deltas), npm audit 0-vuln across all three manifests. Note: frontend-e2e was skipped (no ui label) — DOMPurify dedup not exercised by e2e; risk accepted as version-bumps-in-range. Approving.
Summary
Clears the remaining fixable npm Dependabot alerts across all three lockfiles. The frontend
vite(→8.1.0) and top-leveldompurify(→3.4.11) bumps already landed ondev; this PR covers what's still open against the current lockfiles.Changes (grouped by lockfile)
src/frontend— dompurify cluster[email protected]pinned a nested[email protected], which tripped every dompurify advisory against the frontend lockfile even though the direct dep is already 3.4.11. Added anoverrides: { "dompurify": "^3.4.11" }entry so monaco dedups to the hoisted 3.4.11 — the nested copy is gone.root
package-lock.json@hono/node-server^1.19.13override — stays on 1.x to satisfy the MCP SDK's declared^1.19.9(avoids the unwanted 2.x major jump)ip-addressqssrc/mcp-server/package-lock.jsonqsesbuildAll bumps applied via the existing
overridesconvention +npm install --package-lock-only(lockfile-only; nonode_moduleschurn).Verification
npm audit— 0 vulnerabilities in all three manifests (both prod-only and full/dev runs).npm install --package-lock-onlyexits 0 in each dir → lockfiles in sync withpackage.json.Notes
GHSA-x4vx-rjvf-j5p4, range ≤ 3.4.6) is also cleared — 3.4.11 is above its affected range, so no documented exception is needed after all.viteCVE is a dev-serverfs.denybypass; prod serves static assets vianginxinc/nginx-unprivileged(not exploitable). Already remediated ondev(vite 8.1.0).frontend-e2erevalidates the DOMPurify markdown-render + dev-server surfaces on a freshnpm ci.Fixes #1353
🤖 Generated with Claude Code