Skip to content

fix(deps): patch open security advisories - #144

Merged
m1ngsama merged 1 commit into
mainfrom
fix/security-advisories
Aug 19, 2026
Merged

fix(deps): patch open security advisories#144
m1ngsama merged 1 commit into
mainfrom
fix/security-advisories

Conversation

@m1ngsama

Copy link
Copy Markdown
Member

Closes 17 of the 18 open Dependabot alerts on this repository.

Several existing pnpm.overrides had fallen behind their advisories and five packages had none at all:

package was now
nanoid 3.3.11 3.3.18
brace-expansion 1.1.12 / 2.0.2 1.1.16 / 2.1.2
postcss 8.5.15 8.5.26
js-yaml 4.1.0 4.3.1
dompurify 3.4.10 3.4.13
mermaid 11.15.0 11.16.1
linkify-it 5.0.1 5.0.2

postcss is 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-lockfile clean, 25/25 tests, build passes, all 8 mermaid diagrams still render.

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.
@m1ngsama
m1ngsama requested a review from sheepkinn as a code owner August 19, 2026 06:52
@m1ngsama
m1ngsama merged commit 879f648 into main Aug 19, 2026
3 of 4 checks passed
@m1ngsama
m1ngsama deleted the fix/security-advisories branch August 19, 2026 06:52
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