mermaid-render

Fail

Audited by Gen Agent Trust Hub on Apr 29, 2026

Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill interpolates user-provided file paths and directory names directly into shell commands (e.g., node "$PLUGIN_DIR/scripts/extract_mermaid.js" {file}). This allows for command injection if the user provides a path containing shell metacharacters like semicolons or pipe symbols.
  • [REMOTE_CODE_EXECUTION]: The skill uses find to dynamically resolve its script directory ($PLUGIN_DIR) and then executes scripts located within that directory (e.g., bash "$PLUGIN_DIR/scripts/ensure-deps.sh"). This discovery includes the user's entire home directory, allowing an attacker to place a malicious script in a matching path to achieve code execution.
  • [COMMAND_EXECUTION]: The skill constructs shell commands using variables from local configuration files (.claude/mermaid.json) and user input. The lack of explicit sanitization before passing these strings to the Bash tool creates multiple injection surfaces.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Apr 29, 2026, 12:28 PM
Security Audit — agent-trust-hub — mermaid-render