← Back to scan
File as GitHub Issue repo: mermaid-js/mermaid

Push this scan report to mermaid-js/mermaid

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Python: yaml.load without SafeLoader

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED018 [MINED018] Unsafe Deserialization Pickle: pickle.loads / yaml.load (without Loader=SafeLo… packages/mermaid/src/diagrams/kanban/ka…:129
CRIT MINED018 [MINED018] Unsafe Deserialization Pickle: pickle.loads / yaml.load (without Loader=SafeLo… packages/mermaid/src/diagram-api/frontm…:43
CRIT SEC116 [SEC116] Ruby YAML.load / Marshal.load on untrusted input: `YAML.load` (pre-3.1) and `Mar… packages/mermaid/src/diagrams/kanban/ka…:129
CRIT SEC116 [SEC116] Ruby YAML.load / Marshal.load on untrusted input: `YAML.load` (pre-3.1) and `Mar… packages/mermaid/src/diagram-api/frontm…:43
CRIT SEC079 [SEC079] Python: yaml.load without SafeLoader: yaml.load() without explicit SafeLoader ca… packages/mermaid/src/diagrams/kanban/ka…:129
CRIT SEC079 [SEC079] Python: yaml.load without SafeLoader: yaml.load() without explicit SafeLoader ca… packages/mermaid/src/diagram-api/frontm…:43
CRIT MINED005 [MINED005] Lua Loadstring: loadstring/load executes Lua code. Code injection. packages/mermaid/scripts/create-types-f…:43
CRIT generic-api-key Detected a Generic API Key, potentially exposing access to various services and sensitive… .github/workflows/e2e.yml:240
CRIT generic-api-key Detected a Generic API Key, potentially exposing access to various services and sensitive… .github/workflows/test.yml:55
CRIT GHSA-5xrq-8626-4rwp vitest: GHSA-5xrq-8626-4rwp pnpm-lock.yaml
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/parser/src/language/common/tok…:24
HIGH MINED027 [MINED027] React State Array Mutation: state.X.push/splice/sort followed by setState — Re… packages/mermaid/src/diagrams/treeView/…:61
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/mermaid/src/diagrams/er/erDb.ts:179
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/mermaid/src/diagrams/class/cla…:85
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/mermaid/src/diagrams/block/blo…:44
HIGH SEC027 [SEC027] XML External Entity (XXE) — Node.js xml parsers: Node.js XML parsers can expand … packages/mermaid-local-editor/static/js…:22
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/mermaid-local-editor/static/js…:42
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … .esbuild/dev-explorer/explorer-app.ts:30
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/mermaid-local-editor/static/js…:74
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… .vite/jsonSchemaPlugin.ts:13
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… .esbuild/dev-explorer/explorer-app.ts:22
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/mermaid/src/rendering-util/lay…:56
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/mermaid/src/diagrams/radar/ren…:169
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… .esbuild/dev-explorer/console-panel.ts:99
HIGH DKR001 Docker final stage runs as root Dockerfile:3
HIGH DKC002 Compose service uses host networking docker-compose.yml:20
HIGH MINED126 Workflow container/services image `cypress/browsers:node-20.16.0-chrome-127.0.6533.88-1-f… .github/workflows/e2e-timings.yml:20
HIGH MINED126 Workflow container/services image `cypress/browsers:node-20.16.0-chrome-127.0.6533.88-1-f… .github/workflows/e2e.yml:161
HIGH MINED126 Workflow container/services image `cypress/browsers:node-20.16.0-chrome-127.0.6533.88-1-f… .github/workflows/e2e.yml:37
HIGH MINED115 Action `actions/github-script` pinned to mutable ref `@v7` .github/workflows/validate-lockfile.yml:82
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/validate-lockfile.yml:15
HIGH GHSA-qpx9-hpmf-5gmw underscore: GHSA-qpx9-hpmf-5gmw pnpm-lock.yaml
HIGH GHSA-ph9p-34f9-6g65 tmp: GHSA-ph9p-34f9-6g65 pnpm-lock.yaml
HIGH GHSA-vj76-c3g6-qr5v tar-fs: GHSA-vj76-c3g6-qr5v pnpm-lock.yaml
HIGH GHSA-5c6j-r48x-rmvq serialize-javascript: GHSA-5c6j-r48x-rmvq pnpm-lock.yaml
HIGH GHSA-36hm-qxxp-pg3m preact: GHSA-36hm-qxxp-pg3m pnpm-lock.yaml
HIGH GHSA-c2c7-rcm5-vvqj picomatch: GHSA-c2c7-rcm5-vvqj pnpm-lock.yaml
HIGH GHSA-j3q9-mxjg-w52f path-to-regexp: GHSA-j3q9-mxjg-w52f pnpm-lock.yaml
HIGH GHSA-37ch-88jc-xwx2 path-to-regexp: GHSA-37ch-88jc-xwx2 pnpm-lock.yaml
HIGH GHSA-q67f-28xg-22rw node-forge: GHSA-q67f-28xg-22rw pnpm-lock.yaml
HIGH GHSA-ppp5-5v6c-4jwp node-forge: GHSA-ppp5-5v6c-4jwp pnpm-lock.yaml
HIGH GHSA-5m6q-g25r-mvwx node-forge: GHSA-5m6q-g25r-mvwx pnpm-lock.yaml
HIGH GHSA-5gfm-wpxj-wjgq node-forge: GHSA-5gfm-wpxj-wjgq pnpm-lock.yaml
HIGH GHSA-554w-wpv2-vw27 node-forge: GHSA-554w-wpv2-vw27 pnpm-lock.yaml
HIGH GHSA-2328-f5f3-gj25 node-forge: GHSA-2328-f5f3-gj25 pnpm-lock.yaml
HIGH GHSA-7r86-cg39-jmmj minimatch: GHSA-7r86-cg39-jmmj pnpm-lock.yaml
HIGH GHSA-3ppc-4f35-3m26 minimatch: GHSA-3ppc-4f35-3m26 pnpm-lock.yaml
HIGH GHSA-23c5-xmqv-rm74 minimatch: GHSA-23c5-xmqv-rm74 pnpm-lock.yaml
HIGH GHSA-r5fr-rjxr-66jc lodash-es: GHSA-r5fr-rjxr-66jc pnpm-lock.yaml
HIGH GHSA-r5fr-rjxr-66jc lodash: GHSA-r5fr-rjxr-66jc pnpm-lock.yaml
HIGH GHSA-5j98-mcp5-4vw2 glob: GHSA-5j98-mcp5-4vw2 pnpm-lock.yaml
HIGH GHSA-rf6f-7fwh-wjgh flatted: GHSA-rf6f-7fwh-wjgh pnpm-lock.yaml
HIGH GHSA-25h7-pfq9-p65f flatted: GHSA-25h7-pfq9-p65f pnpm-lock.yaml
HIGH GHSA-v39h-62p7-jpjc fast-uri: GHSA-v39h-62p7-jpjc pnpm-lock.yaml
HIGH GHSA-q3j6-qgpj-74h6 fast-uri: GHSA-q3j6-qgpj-74h6 pnpm-lock.yaml
HIGH GHSA-737v-mqg7-c878 defu: GHSA-737v-mqg7-c878 pnpm-lock.yaml
HIGH GHSA-x6wf-f3px-wcqx @xmldom/xmldom: GHSA-x6wf-f3px-wcqx pnpm-lock.yaml
HIGH GHSA-wh4c-j3r5-mjhp @xmldom/xmldom: GHSA-wh4c-j3r5-mjhp pnpm-lock.yaml
HIGH GHSA-j759-j44w-7fr8 @xmldom/xmldom: GHSA-j759-j44w-7fr8 pnpm-lock.yaml
HIGH GHSA-f6ww-3ggp-fr8h @xmldom/xmldom: GHSA-f6ww-3ggp-fr8h pnpm-lock.yaml
HIGH GHSA-2v35-w6hq-6mfw @xmldom/xmldom: GHSA-2v35-w6hq-6mfw pnpm-lock.yaml
HIGH GHSA-fv7c-fp4j-7gwp @babel/plugin-transform-modules-systemjs: GHSA-fv7c-fp4j-7gwp pnpm-lock.yaml
HIGH MINED113 Express POST /dev/api/sizes has no auth .esbuild/server.ts:432
HIGH MINED113 Express PUT /dev/api/file has no auth .esbuild/server.ts:405
HIGH MINED113 Express POST /dev/api/file has no auth .esbuild/server.ts:370
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/mermaid/src/diagrams/er/erDb.ts:179
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/mermaid/src/diagrams/class/cla…:85
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/mermaid/src/diagrams/block/blo…:44
MED SEC037 [SEC037] Uncontrolled Recursion — stack/depth exhaustion: Parsing arbitrary-depth user in… packages/mermaid/src/diagram-api/frontm…:43
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. packages/mermaid/src/diagrams/kanban/ka…:129
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. packages/mermaid/src/diagram-api/frontm…:43
MED SEC123 [SEC123] Production stack trace / debug output exposed: Debug mode left on in production … .esbuild/dev-explorer/console-panel.ts:81
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED DKR007 Docker build context has no .dockerignore .dockerignore
MED DEPCUR-NPM npm package `eslint-plugin-unicorn` is 2 major version(s) behind (^62.0.0 -> 64.0.0) package.json
MED DEPCUR-NPM npm package `eslint-plugin-cypress` is 1 major version(s) behind (^5.3.0 -> 6.4.1) package.json
MED DEPCUR-NPM npm package `cypress` is 1 major version(s) behind (^14.5.4 -> 15.16.0) package.json
MED DEPCUR-NPM npm package `cspell` is 1 major version(s) behind (^9.3.2 -> 10.0.1) package.json
MED DEPCUR-NPM npm package `cross-env` is 3 major version(s) behind (^7.0.3 -> 10.1.0) package.json
MED DEPCUR-NPM npm package `cpy-cli` is 2 major version(s) behind (^5.0.0 -> 7.0.0) package.json
MED DEPCUR-NPM npm package `concurrently` is 1 major version(s) behind (^9.2.1 -> 10.0.3) package.json
MED DEPCUR-NPM npm package `chokidar` is 2 major version(s) behind (3.6.0 -> 5.0.0) package.json
MED DEPCUR-NPM npm package `@vitest/ui` is 1 major version(s) behind (^3.2.4 -> 4.1.8) package.json
MED DEPCUR-NPM npm package `@vitest/spy` is 1 major version(s) behind (^3.2.4 -> 4.1.8) package.json
MED DEPCUR-NPM npm package `@vitest/coverage-v8` is 1 major version(s) behind (^3.2.4 -> 4.1.8) package.json
MED DEPCUR-NPM npm package `@types/jsdom` is 7 major version(s) behind (^21.1.7 -> 28.0.3) package.json
MED DEPCUR-NPM npm package `@eslint/js` is 1 major version(s) behind (^9.26.0 -> 10.0.1) package.json
MED DEPCUR-NPM npm package `@cypress/code-coverage` is 1 major version(s) behind (^3.14.7 -> 4.0.3) package.json
MED DEPCUR-NPM npm package `@cspell/eslint-plugin` is 1 major version(s) behind (^9.3.2 -> 10.0.1) package.json
MED DEPCUR-NPM npm package `@argos-ci/cypress` is 1 major version(s) behind (^6.2.12 -> 7.0.5) package.json
MED GHSA-48c2-rrv3-qjmp yaml: GHSA-48c2-rrv3-qjmp pnpm-lock.yaml
MED GHSA-58qx-3vcg-4xpx ws: GHSA-58qx-3vcg-4xpx pnpm-lock.yaml
MED GHSA-9jgg-88mc-972h webpack-dev-server: GHSA-9jgg-88mc-972h pnpm-lock.yaml
MED GHSA-79cf-xcqc-c78w webpack-dev-server: GHSA-79cf-xcqc-c78w pnpm-lock.yaml
MED GHSA-4v9v-hfq4-rm2v webpack-dev-server: GHSA-4v9v-hfq4-rm2v pnpm-lock.yaml
MED GHSA-93m4-6634-74q7 vite: GHSA-93m4-6634-74q7 pnpm-lock.yaml
MED GHSA-4w7w-66w2-5vf9 vite: GHSA-4w7w-66w2-5vf9 pnpm-lock.yaml
MED GHSA-w5hq-g745-h8pq uuid: GHSA-w5hq-g745-h8pq pnpm-lock.yaml
MED GHSA-v3rj-xjv7-4jmq smol-toml: GHSA-v3rj-xjv7-4jmq pnpm-lock.yaml
MED GHSA-qj8w-gfj5-8c6v serialize-javascript: GHSA-qj8w-gfj5-8c6v pnpm-lock.yaml
MED GHSA-q8mj-m7cp-5q26 qs: GHSA-q8mj-m7cp-5q26 pnpm-lock.yaml
MED GHSA-6rw7-vpxm-498p qs: GHSA-6rw7-vpxm-498p pnpm-lock.yaml
MED GHSA-qx2v-qp2m-jg93 postcss: GHSA-qx2v-qp2m-jg93 pnpm-lock.yaml
MED GHSA-3v7f-55p6-f55p picomatch: GHSA-3v7f-55p6-f55p pnpm-lock.yaml
MED GHSA-27v5-c462-wpq7 path-to-regexp: GHSA-27v5-c462-wpq7 pnpm-lock.yaml
MED GHSA-65ch-62r8-g69g node-forge: GHSA-65ch-62r8-g69g pnpm-lock.yaml
MED GHSA-4fh9-h7wg-q85m mdast-util-to-hast: GHSA-4fh9-h7wg-q85m pnpm-lock.yaml
MED GHSA-38c4-r59v-3vqw markdown-it: GHSA-38c4-r59v-3vqw pnpm-lock.yaml
MED GHSA-f23m-r3pf-42rh lodash-es: GHSA-f23m-r3pf-42rh pnpm-lock.yaml
MED GHSA-xxjr-mmjv-4gpg lodash: GHSA-xxjr-mmjv-4gpg pnpm-lock.yaml
MED GHSA-f23m-r3pf-42rh lodash: GHSA-f23m-r3pf-42rh pnpm-lock.yaml
MED GHSA-mh29-5h37-fv8m js-yaml: GHSA-mh29-5h37-fv8m pnpm-lock.yaml
MED GHSA-r4q5-vmmm-2653 follow-redirects: GHSA-r4q5-vmmm-2653 pnpm-lock.yaml
MED GHSA-67mh-4wv8-2f99 esbuild: GHSA-67mh-4wv8-2f99 pnpm-lock.yaml
MED GHSA-jxxr-4gwj-5jf2 brace-expansion: GHSA-jxxr-4gwj-5jf2 pnpm-lock.yaml
MED GHSA-f886-m6hf-6m8v brace-expansion: GHSA-f886-m6hf-6m8v pnpm-lock.yaml
MED GHSA-2g4f-4pwh-qvx6 ajv: GHSA-2g4f-4pwh-qvx6 pnpm-lock.yaml
MED AGT007 localStorage write failures are swallowed silently .esbuild/dev-explorer/diagram-viewer.ts:127
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED AUC002 [AUC002] Low visible authorization coverage in route inventory: Only 16.7% of discovered …
MED WEB015 Public web app has no Content Security Policy index.html
LOW DEPCUR-NPM npm package `eslint-plugin-tsdoc` is minor version(s) behind (^0.4.0 -> 0.5.2) package.json
LOW DEPCUR-NPM npm package `eslint-plugin-no-only-tests` is minor version(s) behind (^3.3.0 -> 3.4.0) package.json
LOW DEPCUR-NPM npm package `eslint-plugin-jest` is minor version(s) behind (^29.0.1 -> 29.15.2) package.json
LOW DEPCUR-NPM npm package `esbuild` is minor version(s) behind (^0.25.12 -> 0.28.0) package.json
LOW DEPCUR-NPM npm package `dotenv` is minor version(s) behind (^17.2.4 -> 17.4.2) package.json
LOW DEPCUR-NPM npm package `ajv` is minor version(s) behind (^8.17.1 -> 8.20.0) package.json
LOW DEPCUR-NPM npm package `@rollup/plugin-typescript` is minor version(s) behind (^12.1.4 -> 12.3.0) package.json
LOW DEPCUR-NPM npm package `@changesets/cli` is minor version(s) behind (^2.29.8 -> 2.31.0) package.json
LOW DEPCUR-NPM npm package `@changesets/changelog-github` is minor version(s) behind (^0.5.2 -> 0.7.0) package.json
LOW GHSA-8fgc-7cc6-rx7x webpack: GHSA-8fgc-7cc6-rx7x pnpm-lock.yaml
LOW GHSA-38r7-794h-5758 webpack: GHSA-38r7-794h-5758 pnpm-lock.yaml
LOW GHSA-w7fw-mjwx-w883 qs: GHSA-w7fw-mjwx-w883 pnpm-lock.yaml
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/rendering-util/ren…:212
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/rendering-util/ren…:75
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/rendering-util/ren…:4
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/rendering-util/ren…:106
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/rendering-util/lay…:76
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/rendering-util/lay…:84
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/rendering-util/lay…:96
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/rendering-util/lay…:33
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/rendering-util/lay…:266
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/rendering-util/lay…:12
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/user-jour…:5
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/user-jour…:35
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/user-jour…:21
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/timeline/…:10
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/timeline/…:187
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/timeline/…:76
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/state/sty…:60
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/state/sta…:11
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/state/sha…:297
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/sequence/…:33
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/railroad/…:47
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/mindmap/s…:27
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/gantt/gan…:542
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/flowchart…:97
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/flowchart…:4
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/class/cla…:309
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/diagrams/class/cla…:1
LOW AIC003 Duplicated implementation block across source files packages/mermaid/src/dagre-wrapper/edge…:256
LOW AIC003 Duplicated implementation block across source files packages/mermaid-zenuml/src/mermaidUtil…:2
LOW AIC003 Duplicated implementation block across source files packages/mermaid-layout-tidy-tree/src/l…:311
LOW WEB001 Public web app has no robots.txt robots.txt
LOW WEB002 Public web app has no sitemap sitemap.xml
LOW WEB008 Public docs site has no llms.txt llms.txt
LOW DKC010 Compose service lacks no-new-privileges hardening docker-compose.yml:1
LOW DKC006 Compose service does not declare a runtime user docker-compose.yml:1
LOW WEB011 Public web app has no humans.txt humans.txt
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/mermaid/src/diagrams/treemap/p…:16
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/mermaid/src/diagrams/radar/sty…:14
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/mermaid/src/diagrams/eventmode…:13
INFO MINED098 [MINED098] Global Scope Pollution: Attaching libraries/objects directly to the global win… scripts/verify-diagram/verify.mjs:126
INFO MINED098 [MINED098] Global Scope Pollution: Attaching libraries/objects directly to the global win… packages/mermaid/src/diagrams/class/svg…:109
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… scripts/jison/lint.mts:8
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… packages/mermaid/scripts/create-types-f…:60
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/mermaid/src/rendering-util/ren…:261
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/mermaid/src/diagrams/state/sta…:114
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/mermaid-local-editor/static/js…:44
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. packages/mermaid-layout-tidy-tree/src/r…:10
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. packages/mermaid-example-diagram/src/me…:33
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. .esbuild/dev-explorer/console-panel.ts:184
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/mermaid/src/diagrams/architect…:29
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/mermaid-layout-tidy-tree/src/r…:81
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … .esbuild/build.ts:67
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .vite/build.ts:51
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .esbuild/build.ts:76
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .build/types.ts:6
Reset to top 5 188 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `mermaid-js/mermaid`

**Score: 63/100 (C+)**  ·  188 findings  ·  scanned 2026-06-05 07:02 UTC  ·  176,649 LOC

| Severity | Count |
|---|---|
| CRITICAL | 10 |
| HIGH | 55 |
| MEDIUM | 56 |
| LOW | 48 |

📊 [Full filterable report](https://repobility.com/scan/eb0e01a6-f8a4-4dcb-b77b-71f719fa226f/)  ·  ![scorecard](https://repobility.com/scan/eb0e01a6-f8a4-4dcb-b77b-71f719fa226f/report.png?v=1780642963-s2)

### Top findings

1. **CRITICAL** `MINED018` — Unsafe Deserialization Pickle
   `packages/mermaid/src/diagrams/kanban/kanbanDb.ts:129` · CWE-502 · ✓ Repobility
2. **CRITICAL** `MINED018` — Unsafe Deserialization Pickle
   `packages/mermaid/src/diagram-api/frontmatter.ts:43` · CWE-502 · ✓ Repobility
3. **CRITICAL** `SEC116` — Ruby YAML.load / Marshal.load on untrusted input
   `packages/mermaid/src/diagrams/kanban/kanbanDb.ts:129` · A08:2021 Software & Data Integrity Failures
4. **CRITICAL** `SEC116` — Ruby YAML.load / Marshal.load on untrusted input
   `packages/mermaid/src/diagram-api/frontmatter.ts:43` · A08:2021 Software & Data Integrity Failures
5. **CRITICAL** `SEC079` — Python: yaml.load without SafeLoader
   `packages/mermaid/src/diagrams/kanban/kanbanDb.ts:129` · A05:2021 Security Misconfiguration

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/eb0e01a6-f8a4-4dcb-b77b-71f719fa226f/_
Megaproject â high spam risk
Could not determine 'mermaid-js/mermaid' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.