Skip to content

fix: upgrade vite and hono for CVE remediation (2026-04-09)#3

Open
Mortalus wants to merge 1 commit into
devfrom
fix/supply-chain-20260409-gxp-regulations
Open

fix: upgrade vite and hono for CVE remediation (2026-04-09)#3
Mortalus wants to merge 1 commit into
devfrom
fix/supply-chain-20260409-gxp-regulations

Conversation

@Mortalus
Copy link
Copy Markdown
Member

@Mortalus Mortalus commented Apr 9, 2026

Summary

  • vite upgraded 8.0.3 → 8.0.8 to remediate 3 high/moderate CVEs (path traversal in optimised deps .map handling, server.fs.deny bypass via queries, arbitrary file read via dev-server WebSocket)
  • hono upgraded 4.12.9 → 4.12.12 to remediate 5 moderate CVEs (cookie name validation bypass, IP restriction bypass for IPv4-mapped IPv6, path traversal in toSSG(), middleware bypass via repeated slashes)
  • @hono/node-server upgraded 1.19.11 → 1.19.13 to remediate 1 moderate CVE (middleware bypass via repeated slashes in serveStatic)
  • dependabot.yml created to enable automated weekly dependency updates for npm, GitHub Actions, and Docker ecosystems

All three vulnerable packages were transitive dependencies (pulled in by @ansvar/mcp-sqlite). Fixed via npm audit fix; build (tsc) confirmed passing after upgrade.

Supply chain hardening findings (not auto-fixed — reported only)

Unpinned GitHub Actions (tag-based, not SHA-pinned)

Workflow Action Tag used
ci.yml, ingest.yml, check-freshness.yml actions/checkout @v4
ci.yml, ingest.yml, check-freshness.yml actions/setup-node @v4
ghcr-build.yml docker/setup-buildx-action @v3
ghcr-build.yml docker/login-action @v3
ghcr-build.yml docker/metadata-action @v5
ghcr-build.yml docker/build-push-action @v5

Recommendation: pin each action to a full commit SHA for supply chain integrity.

Unpinned Dockerfile base image

FROM node:20-alpine — no digest pinned. Recommendation: use node:20-alpine@sha256:<digest>.

License check

All production dependencies use approved SPDX licenses (MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0). No copyleft licenses detected.

Test plan

  • CI workflow passes on this branch (build + tests)
  • npm audit returns 0 vulnerabilities after merge
  • GHCR Docker build succeeds
  • Dependabot PRs begin appearing weekly after merge

🤖 Generated with Claude Code

Remediate GHAS supply chain alerts (2026-04-09):
- vite: 8.0.3 → 8.0.8 (GHSA-4w7w-66w2-5vf9, GHSA-v2wj-q39q-566r, GHSA-p9ff-h696-f583 — high)
- hono: 4.12.9 → 4.12.12 (GHSA-26pp-8wgv-hjvm, GHSA-r5rp-j6wh-rvv4, GHSA-xpcf-pg52-r92g, GHSA-xf4j-xp2r-rqqx, GHSA-wmmm-f939-6g9c — moderate)
- @hono/node-server: 1.19.11 → 1.19.13 (GHSA-92pp-h63x-v22m — moderate)

Also add .github/dependabot.yml for automated npm, GitHub Actions,
and Docker dependency updates (weekly, Mondays).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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