beautiful-mermaid
Pass
Audited by Gen Agent Trust Hub on Nov 8, 2026
Risk Level: SAFEREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The script
scripts/render.tscontains anensurePackagefunction that usesnode:child_process.execSyncto runnpm installorbun addfor thebeautiful-mermaidpackage if it is not found locally. This allows for the download and execution of external code during skill operation. - [EXTERNAL_DOWNLOADS]: The skill is designed to fetch the
beautiful-mermaiddependency from the public NPM registry at runtime. This package is a resource associated with the skill's vendor. - [COMMAND_EXECUTION]: The rendering workflow relies on several shell commands, including script execution via
bunornpx tsx, and browser automation commands through theagent-browserskill to capture screenshots. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted user input in the form of Mermaid diagram code or natural language descriptions, which are then processed and rendered.
- Ingestion points: Mermaid code is accepted via CLI arguments (
--code) or read from input files (--input) inscripts/render.ts. - Boundary markers: There are no explicit markers or safety instructions used to isolate the user-provided Mermaid syntax from the rest of the processing logic.
- Capability inventory: The skill has capabilities for file system writes (
writeFileSync), subprocess execution (execSync), and browser manipulation (agent-browser). - Sanitization: The skill does not perform validation or sanitization of the Mermaid code before it is passed to the rendering engine or embedded into the HTML wrapper in
scripts/create-html.ts.
Audit Metadata