Skip to content

chore(security): force vite >=7.1.12 to clear path-traversal alert#460

Merged
amavashev merged 1 commit into
mainfrom
chore/vite-override
Apr 19, 2026
Merged

chore(security): force vite >=7.1.12 to clear path-traversal alert#460
amavashev merged 1 commit into
mainfrom
chore/vite-override

Conversation

@amavashev
Copy link
Copy Markdown
Contributor

Summary

Closes Dependabot alert #16 (vite path traversal in optimized deps .map handling, GHSA-4w7w-66w2-5vf9) — the one alert that survived #459.

Why

Dependabot couldn't auto-fix vite because vitepress 1.6.4 declares vite ^5.4.14, and the patched range starts at 6.3.7 / 7.1.12 — nothing in the ^5 line is patched. Dependabot reported security_update_not_possible (see failed run #24641751012).

This PR forces vite via overrides, bypassing vitepress's declared peer range. Vitepress 1.6.4's runtime API turns out to be compatible with vite 7.x — the full build runs cleanly.

Changes

  • overrides.vite: ">=7.1.12" in package.json
  • Resulting tree: vitepressvite@7.3.2, vitestvite@8.0.8, both patched

Test plan

vitepress 1.6.4 declares `vite ^5.4.14`, and the only patched lines
for GHSA-4w7w-66w2-5vf9 (vite path traversal in optimized deps `.map`
handling) are >=6.3.7 / >=7.1.12 — Dependabot correctly reports
"no patched version available" inside the declared range.

Override resolves vitepress's vite to 7.3.2 (and leaves vitest's
8.0.8 in place). vitepress's runtime API is compatible despite the
declared peer range — full build (87s) and 33 tests pass cleanly.

`npm audit` now reports 0 vulnerabilities.
@amavashev amavashev merged commit f74617a into main Apr 19, 2026
5 checks passed
@amavashev amavashev deleted the chore/vite-override branch April 22, 2026 10:03
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