beautiful-mermaid
Pass
Audited by Gen Agent Trust Hub on Oct 16, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The
scripts/render.tsscript dynamically installs thebeautiful-mermaidpackage from the NPM registry during execution if it is not already available in the environment. - [COMMAND_EXECUTION]: The skill uses
child_process.execSyncwithinscripts/render.tsto run system commands (npm installorbun add) for installing dependencies at runtime. - [DYNAMIC_EXECUTION]: The
scripts/render.tsscript performs runtime package installation followed by a dynamicimport()call to load thebeautiful-mermaidlibrary, which is a form of dynamic code loading. - [INDIRECT_PROMPT_INJECTION]: The skill processes user-supplied Mermaid syntax and renders it to SVG format. The
scripts/create-html.tsscript takes this SVG and interpolates it directly into an HTML wrapper without any sanitization or escaping. This HTML file is then opened locally by theagent-browsertool. A malicious user or an attacker-controlled data source could provide Mermaid code that results in an SVG containing script elements or event handlers, which would execute in the context of the agent's browser when the file is opened. - Ingestion points: User-provided Mermaid code or description processed by
scripts/render.tsandscripts/create-html.ts. - Boundary markers: None identified; user input is treated as raw Mermaid syntax.
- Capability inventory: File writing (
writeFileSync), system command execution (execSync), and browser interaction (agent-browser). - Sanitization: Absent;
scripts/create-html.tsperforms raw string interpolation of the SVG content into the HTML template.
Audit Metadata