Skip to content

fix: patch dependency vulnerabilities (8 → 4 dev-only) - #247

Merged
gkrajniak merged 1 commit into
mainfrom
fix/dependency-vulnerabilities
Aug 13, 2026
Merged

fix: patch dependency vulnerabilities (8 → 4 dev-only)#247
gkrajniak merged 1 commit into
mainfrom
fix/dependency-vulnerabilities

Conversation

@gkrajniak

Copy link
Copy Markdown
Contributor

Update transitive dependencies in the lockfile to resolve the fixable npm audit findings pulled through vitepress:

  • dompurify → 3.4.13 (XSS / config-pollution advisories)
  • mermaid → 11.16.1 (prototype pollution, CSS injection, DoS)
  • nanoid → 3.3.18 (infinite loop on non-positive size)
  • postcss → 8.5.26 (source-map path traversal)

npm audit: 8 vulnerabilities (3 high, 5 moderate) → 4 (1 high, 3 moderate).

The remaining 4 all trace to a single root cause: esbuild <=0.24.2 (dev-server SSRF, GHSA-67mh-4wv8-2f99) cascading through vite → vitepress → vitepress-plugin-mermaid. vitepress 1.6.4 is the latest stable and pins vite@5, which requires esbuild ^0.21.3, while the fix is esbuild >=0.25.0 — outside vite 5's range, with no non-breaking upgrade path. The advisory affects only the esbuild/vite dev server; this is a static site built with vitepress build and deployed to gh-pages, so the dev server is never exposed in production. Deferred pending a vitepress major upgrade.

Verified: vitepress build completes successfully.

Update transitive dependencies in the lockfile to resolve the
fixable npm audit findings pulled through vitepress:

- dompurify → 3.4.13 (XSS / config-pollution advisories)
- mermaid → 11.16.1 (prototype pollution, CSS injection, DoS)
- nanoid → 3.3.18 (infinite loop on non-positive size)
- postcss → 8.5.26 (source-map path traversal)

npm audit: 8 vulnerabilities (3 high, 5 moderate) → 4 (1 high, 3 moderate).

The remaining 4 all trace to a single root cause: esbuild <=0.24.2
(dev-server SSRF, GHSA-67mh-4wv8-2f99) cascading through
vite → vitepress → vitepress-plugin-mermaid. vitepress 1.6.4 is the
latest stable and pins vite@5, which requires esbuild ^0.21.3, while
the fix is esbuild >=0.25.0 — outside vite 5's range, with no
non-breaking upgrade path. The advisory affects only the esbuild/vite
dev server; this is a static site built with `vitepress build` and
deployed to gh-pages, so the dev server is never exposed in
production. Deferred pending a vitepress major upgrade.

Verified: vitepress build completes successfully.
Signed-off-by: gkrajniak <gkrajniak@gmail.com>
@gkrajniak
gkrajniak requested a review from a team as a code owner August 13, 2026 10:14
@gkrajniak gkrajniak self-assigned this Aug 13, 2026
@gkrajniak gkrajniak added the bug Something isn't working label Aug 13, 2026
@gkrajniak gkrajniak moved this to In-Review in OpenMesh - Backlog Aug 13, 2026
@gkrajniak
gkrajniak enabled auto-merge (squash) August 13, 2026 10:14
@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-13 10:16 UTC

@gkrajniak
gkrajniak merged commit d4283e7 into main Aug 13, 2026
7 checks passed
@gkrajniak
gkrajniak deleted the fix/dependency-vulnerabilities branch August 13, 2026 10:15
@github-project-automation github-project-automation Bot moved this from In-Review to Done in OpenMesh - Backlog Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants