fix(deps): patch open security advisories - #144
Merged
Conversation
Raises the pnpm overrides that had fallen behind their advisories and adds the ones that were missing: nanoid -> 3.3.18 brace-expansion -> 1.1.16 / 2.1.2 postcss -> 8.5.23 js-yaml -> 4.3.1 dompurify -> 3.4.13 mermaid -> 11.16.1 linkify-it -> 5.0.2 postcss is a peer of vitepress, which overrides do not rewrite, so it is pinned as a direct devDependency instead. esbuild is left alone. The vulnerable copy (0.21.5) is pinned by the vite 5 that vitepress 1.6.4 bundles, and forcing 0.27 or 0.28 fails the build: esbuild can no longer lower mermaid's destructuring to the configured browser target. The advisory is a dev-server issue and this repo only runs esbuild at build time.
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 17 of the 18 open Dependabot alerts on this repository.
Several existing
pnpm.overrideshad fallen behind their advisories and five packages had none at all:postcssis a peer dependency of vitepress, which overrides do not rewrite, so it is pinned as a direct devDependency instead.esbuild is deliberately left alone. The vulnerable copy (0.21.5) is pinned by the vite 5 that vitepress 1.6.4 bundles. Forcing 0.27 or 0.28 fails the build — esbuild can no longer lower mermaid's destructuring to the configured browser target. The advisory (GHSA-67mh-4wv8-2f99) concerns esbuild's dev server; this repo only runs esbuild at build time. Clearing it needs a vitepress major upgrade, which does not belong in a security patch.
The vitest advisory that triggered the alert emails (CVE-2026-47429) was already fixed — its first patched version is 4.1.0 and this repo is on 4.1.0.
Verified on this branch:
pnpm install --frozen-lockfileclean, 25/25 tests, build passes, all 8 mermaid diagrams still render.