chore(deps): override esbuild + vite to patch audit advisories#72
Merged
Conversation
Closes #71 vitepress 1.6.4 (latest stable) pins vite ^5.4.14, which transitively pulls a vulnerable esbuild (GHSA-67mh-4wv8-2f99) and a vite version itself flagged by GHSA-4w7w-66w2-5vf9. Patches for the vite advisory landed in 6.4.2 / 7.3.2 / 8.0.5 only (not backported to 5.x). vitepress 2.x is still alpha and vitepress-plugin-mermaid does not yet support it. Use npm overrides to force: - esbuild ^0.25.0 (fixes GHSA-67mh-4wv8-2f99) - vite ^6.4.2 (fixes GHSA-4w7w-66w2-5vf9) `npm audit` reports 0 vulnerabilities. `npm run docs:build` completes successfully against vite 6 with no config changes.
rubenhensen
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #71.
Summary
overridesblock topackage.jsonforcingesbuild ^0.25.0andvite ^6.4.2.npm auditnow reports 0 vulnerabilities (was 4 moderate).npm run docs:buildcompletes successfully (~6.8s) with vite 6 — no config changes required.Why overrides instead of bumping vitepress
vitepresslatest stable is 1.6.4, which pinsvite ^5.4.14and is itself flagged by the audit.6.4.2 / 7.3.2 / 8.0.5only — not backported to 5.x.vitepress@2.0.0-alpha.17is still pre-release;vitepress-plugin-mermaid@2.0.17declares peervitepress: ^1.0.0 || ^1.0.0-alpha, so it does not support 2.x yet.Test plan
npm installclean (0 vulnerabilities).npm run docs:buildsucceeds; mermaid diagrams still render in built HTML (verified viagrep mermaid docs/.vitepress/dist/*.html).git fetch origin && git checkout chore/audit-fix-esbuild-override && rm -rf node_modules package-lock.json && npm install && npm run docs:build