Skip to content

ASE-538: pin mermaid 11.15.0 for gantt DoS alert 67 - #821

Merged
BetterAndBetterII merged 2 commits into
mainfrom
fix/ase-538-mermaid-upgrade
May 16, 2026
Merged

BetterAndBetterII merged 2 commits into
mainfrom
fix/ase-538-mermaid-upgrade

Conversation

@BetterAndBetterII

Copy link
Copy Markdown
Collaborator

What changed

  • pin pnpm.overrides.mermaid to 11.15.0 in web/package.json
  • regenerate web/pnpm-lock.yaml so the streamdown-svelte dependency chain resolves mermaid@11.15.0
  • extend web/scripts/check-security-overrides.mjs so CI blocks future vulnerable mermaid downgrades
  • add web/scripts/verify-mermaid-gantt-no-hang.mjs plus a Vitest regression to verify hostile gantt excludes input completes quickly instead of hanging

Why

Dependabot alert 67 (GHSA-6m6c-36f7-fhxh / CVE-2026-41150) flagged the transitive runtime mermaid version used by markdown rendering. Vulnerable versions up to 11.14.0 can loop indefinitely on malicious gantt excludes input, creating a DoS path anywhere untrusted Mermaid diagrams are rendered.

Impact

Markdown surfaces that render Mermaid diagrams now resolve the patched runtime dependency and keep a regression check around the hostile gantt payload that originally triggered the alert.

Validation

  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm exec prettier --check package.json scripts/check-security-overrides.mjs scripts/verify-mermaid-gantt-no-hang.mjs src/lib/features/markdown/mermaid-gantt-security.test.ts
  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm run check:security-overrides
  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm run lint:deps
  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm vitest run src/lib/features/markdown/markdown-content.test.ts src/lib/features/markdown/mermaid-gantt-security.test.ts
  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH node scripts/verify-mermaid-gantt-no-hang.mjs
  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm run build

@BetterAndBetterII
BetterAndBetterII merged commit 65c3391 into main May 16, 2026
11 checks passed
@BetterAndBetterII
BetterAndBetterII deleted the fix/ase-538-mermaid-upgrade branch May 16, 2026 14:46
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