beautiful-mermaid
Warn
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The script
scripts/render.tscontains anensurePackagefunction that useschild_process.execSyncto dynamically install thebeautiful-mermaidpackage from public registries (NPM or Bun) at runtime if it is not already present in the environment. - [DYNAMIC_EXECUTION]: The skill uses dynamic
import()inscripts/render.tsto load thebeautiful-mermaidlibrary after it has been installed via shell commands at runtime. - [COMMAND_EXECUTION]: The workflow in
SKILL.mdinstructs the agent to execute shell commands (e.g.,bun run scripts/render.ts --code "...") where user-supplied Mermaid code is passed directly as a command-line argument. This creates a surface for command injection if the agent does not properly escape the user input when constructing the shell command. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user input in the form of Mermaid diagram code, which is rendered into an SVG, wrapped in HTML, and then opened in a browser context using the
agent-browserskill. A lack of sanitization could allow malicious diagram code to influence the browser session. - Ingestion points: User-provided diagram code or descriptions processed in
SKILL.mdand passed toscripts/render.ts. - Boundary markers: Absent; the instructions do not specify delimiters or warnings to ignore embedded instructions in the Mermaid code.
- Capability inventory: The skill uses shell execution (
bun,npx,deno,rm), file system access (node:fs), and browser automation (agent-browser). - Sanitization: Absent; the diagram code is interpolated into shell commands in
SKILL.mdand the resulting SVG is embedded directly into an HTML template inscripts/create-html.tswithout validation or escaping.
Audit Metadata