Skip to content

fix(docs): override vite to 6.4.3 to clear npm security alerts - #142

Merged
soidisant merged 1 commit into
mainfrom
fix/docs-vite-security-override
Sep 17, 2026
Merged

soidisant merged 1 commit into
mainfrom
fix/docs-vite-security-override

Conversation

@soidisant

Copy link
Copy Markdown
Collaborator

Why the Dependabot runs fail

Both failing "Dependabot Updates" runs (#122 vite, #123 esbuild) end with security_update_not_possible. VitePress 1.6.4, the latest stable release, declares vite@^5.4.14, and vite 5 pins esbuild 0.21. Dependabot cannot bump either package without breaking VitePress's declared range, so it gives up. VitePress 2 is still alpha (2.0.0-alpha.20).

Fix

  • docs/package.json: overrides: { "vite": "^6.4.3" }. The lockfile now resolves vite 6.4.3 and esbuild 0.25.12, both above the patched versions in the 4 open alerts (1 high, 3 medium).
  • .github/dependabot.yml: adds the npm ecosystem for /docs (weekly, grouped), so the docs site gets regular update PRs instead of security-only jobs.

Test plan

  • npm ci from the updated lockfile
  • npm audit: 0 vulnerabilities
  • npm run docs:build with VitePress 1.6.4 on vite 6.4.3: builds, kotlin-vue blocks and the /api/ Dokka link render
  • Dependabot alerts close after merge

Co-Authored-By: Claude noreply@anthropic.com

VitePress 1.6.4 (latest stable) still depends on vite ^5.4.14, which pulls
esbuild 0.21. Dependabot security updates for vite and esbuild fail with
"security_update_not_possible" because no VitePress release unlocks them.

An npm override pins vite to ^6.4.3 (esbuild 0.25.12). VitePress 1.6.4 builds
the site correctly with it; `npm audit` reports 0 vulnerabilities.

Also registers the docs npm ecosystem in dependabot.yml so future updates
arrive as grouped weekly PRs instead of security-only jobs.

Co-Authored-By: Claude <noreply@anthropic.com>
@soidisant
soidisant merged commit 3b82f70 into main Sep 17, 2026
1 check passed
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