//nefariousplan

mermaid-js

mermaid

Case files

  1. CVE-2026-41150: Mermaid's Gantt Loop Got an Iteration Cap. The TODO Above It Survived the Patch.

    CVE-2026-41150: Mermaid's Gantt Loop Got an Iteration Cap. The TODO Above It Survived the Patch.

    Mermaid's gantt renderer contains a function called fixTaskDates. It walks forward from a task's start date one day at a time, looking for an end date the chart's excludes list does not eliminate.

  2. CVE-2026-41159: Mermaid Called Its Brace Counter A CSS Sanitizer

    CVE-2026-41159: Mermaid Called Its Brace Counter A CSS Sanitizer

    sanitizeCss() in packages/mermaid/src/utils/sanitizeDirective.ts is a brace counter. It iterates the input string once, increments startCnt on each {, increments endCnt on each }, returns '{ / ERROR: Unbalanced CSS / }' if the counts ever disagree, and returns…