Back to skill

Security audit

beautiful-mermaid

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this Mermaid-rendering skill suspicious because scanners report unsafe SVG handling, privacy and dependency concerns, and incomplete inspection of some referenced files.

Treat this as a review decision before installing. Consider whether you need it, avoid embedding its generated SVG from untrusted input until the handling is reviewed, and account for the reported Google Fonts requests. The scan is incomplete, and the reported dependency advisories have not been independently verified here.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (57)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 152)May include surrounding context.

md
当用户需要将**多张 Mermaid 图表**整合为一个专业的展示页面时,使用 `scripts/rich-html.js`。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 166)May include surrounding context.

md
node scripts/rich-html.js "标题" \

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 183)May include surrounding context.

md
node scripts/rich-html.js "示例集" \

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 615)May include surrounding context.

md
当用户有**多张 Mermaid 图表**需要整合展示时(如系统设计文档、架构评审、技术报告),使用 `scripts/rich-html.js`,生成带标签页导航和信息卡片的专业展示页面:

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 619)May include surrounding context.

md
node scripts/rich-html.js "报告标题" \

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 634)May include surrounding context.

md
> 当用户要求将**多张图表整合为报告/文档/展示页面**时,**必须使用 `scripts/rich-html.js`**,不要手动拼接 HTML。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 646)May include surrounding context.

md
node scripts/rich-html.js "<标题>" \

Unvalidated Output Injection

High
Category
Output Handling
Confidence
93% confidence
Finding

The React example inserts SVG derived from the code prop directly into the page without output sanitization. If attacker-controlled Mermaid content produces unsafe SVG markup, this bypasses React's escaping and can enable XSS in the embedding application's origin; the later security warning does not make this copyable example safe.

Content

Scanner excerpt · SKILL.md (reported line 304)May include surrounding context.

}, [code]);

if (error) return

text
{error.message}
; return <div dangerouslySetInnerHTML={{ __html: svg }} />; }

text

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 363)May include surrounding context.

md
node scripts/render.js diagram.mmd -o output.svg

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 366)May include surrounding context.

md
node scripts/render.js diagram.mmd -t dracula -o output.svg

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 369)May include surrounding context.

md
node scripts/render.js diagram.mmd -f png -o output.png

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 372)May include surrounding context.

md
node scripts/render.js diagram.mmd -f png -w 2400 -o output.png

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 375)May include surrounding context.

md
node scripts/render.js diagram.mmd -f png -s 2 -o output.png

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 378)May include surrounding context.

md
node scripts/render.js diagram.mmd -f png --dpi 300 -o output.png

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 381)May include surrounding context.

md
node scripts/render.js diagram.mmd -f ascii

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 384)May include surrounding context.

md
node scripts/render.js chart.mmd --interactive -o chart.svg

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 387)May include surrounding context.

md
node scripts/render.js -c "graph TD\nA --> B" -o output.svg

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 424)May include surrounding context.

md
node scripts/render.js diagram.mmd -f png -o screen.png

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 427)May include surrounding context.

md
node scripts/render.js diagram.mmd -f png --dpi 300 -o print.png

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 430)May include surrounding context.

md
node scripts/render.js diagram.mmd -f png -w 2400 -o hd.png

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 433)May include surrounding context.

md
node scripts/render.js diagram.mmd -f png -s 4 -o 4k.png

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 436)May include surrounding context.

md
node scripts/render.js diagram.mmd -f png -w 600 -o icon.png

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 445)May include surrounding context.

md
node scripts/render.js diagram.mmd -t tokyo-night -p glass -o output.svg

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 446)May include surrounding context.

md
node scripts/render.js diagram.mmd -t dracula -p gradient -o output.svg

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 447)May include surrounding context.

md
node scripts/render.js diagram.mmd -t catppuccin-mocha -p glass -f png -o output.png