Skip to content

fix: clear Vite Dependabot advisories with a Vite 6 override - #133

Merged
sametcelikbicak merged 1 commit into
mainfrom
fix/dependabot-vite-override
Nov 12, 2026
Merged

sametcelikbicak merged 1 commit into
mainfrom
fix/dependabot-vite-override

Conversation

@sametcelikbicak

Copy link
Copy Markdown
Owner

What changed

  • Added overrides.vite = "^6.4.6" to package.json and refreshed package-lock.json. Vite 6.4.6 resolves esbuild@0.25.12.
  • Documented the override and its removal condition in CONTRIBUTING.md.
  • Finished the small docs gap left by fix: check reports linked skills as unmanaged, and .team/ never ignored itself #132: docs/faq.md and docs/memory.md now name run_state.py start-task alongside start-run as creators of .team/.gitignore.

Why

There are 9 open Dependabot alerts, all npm dev/transitive through vitepress@1.6.4 → vite@5.4.21 → esbuild@0.21.5:

  • 8 Vite advisories (1 high, 6 medium, 1 low). The high one is a Windows launch-editor fs.existsSync() bypass; the others cover path traversal, server.fs.deny bypasses, NTLMv2 hash disclosure and arbitrary command execution through editor flags. First patched releases are in the Vite 6.4.x line.
  • 1 esbuild advisory (medium), first patched in 0.25.0.

vitepress@1.6.4 is the latest stable release and declares vite: ^5.4.14. Vite 5 is end-of-life and has no patched 5.x release for these advisories, so Dependabot cannot open a compatible fix PR even though automated security fixes are enabled.

The override moves Vite to the patched 6.x line. @vitejs/plugin-vue@5.2.4 already supports vite: ^5.0.0 || ^6.0.0, so this stays within its peer range; only VitePress's own ^5.4.14 declaration is exceeded. Everything here is a devDependency and does not ship to package users, but the vulnerabilities affect vitepress dev (notably on Windows), and leaving the alerts open hides the security signal.

Verification

npm ci
npm audit                                              # 0 vulnerabilities
npm run docs:build                                     # build complete
npm test                                               # 23/23 pass
ruby scripts/validate.rb                               # validate: 48 files OK
./scripts/smoke-install.sh                             # smoke: OK
./scripts/test-memory-compact.sh                       # memory-compact: OK
python3 scripts/test-run-state.py                      # run-state: OK
bash -n install.sh scripts/*.sh skills/team-memory/*.sh
git diff --exit-code -- docs/reference                 # clean

I also tested vitepress@2.0.0-alpha.21 as the alternative: it clears all alerts with Vite 8.3.8 and builds successfully, but it is still alpha. This PR keeps stable VitePress 1.6.4 with a documented override until VitePress 2 is stable, then the override is removed.

Checklist

  • ruby scripts/validate.rb passes
  • macOS/Linux: bash -n install.sh scripts/*.sh and ./scripts/smoke-install.sh pass
  • Windows: .\\scripts\\smoke-install.ps1 not run locally (no PowerShell file changed); CI covers it
  • New frontmatter description values are quoted when they contain : — no new frontmatter
  • team.yaml references resolve (agent, skill, profile stage ids) — unchanged
  • README updated if a command, flag, agent or stage changed — none changed
  • No secrets or machine-specific paths

Related issue

Dependabot alerts: https://github.com/sametcelikbicak/opencode-team/security/dependabot

VitePress 1.6.4 pins vite ^5.4.14, and Vite 5 is end-of-life with 8 open advisories; its esbuild ^0.21.3 is also affected. Dependabot cannot produce a compatible fix, so override Vite to the patched 6.x line. The plugin-vue peer range already covers Vite 6.

Also finish the docs consistency left from #132 by naming start-task alongside start-run as a creator of .team/.gitignore, and document the override and its removal condition in CONTRIBUTING.
@sametcelikbicak
sametcelikbicak merged commit f835388 into main Nov 12, 2026
11 checks passed
@sametcelikbicak
sametcelikbicak deleted the fix/dependabot-vite-override branch November 12, 2026 13:25
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