beautiful-mermaid
Warn
Audited by Gen Agent Trust Hub on Sep 13, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [REMOTE_CODE_EXECUTION]: The rendering script includes logic to dynamically download and install the
beautiful-mermaidpackage from a remote registry if it is not present in the environment. - Evidence: The
ensurePackagefunction inscripts/render.tsexecutes installation commands viachild_process.execSync. - [COMMAND_EXECUTION]: The skill executes shell commands to manage dependencies and environment setup.
- Evidence:
scripts/render.tscallsexecSyncto runnpm installorbun adddepending on the detected runtime. - [DYNAMIC_EXECUTION]: The rendering script utilizes runtime loading for its primary dependency.
- Evidence:
scripts/render.tsuses dynamicimport()to load thebeautiful-mermaidlibrary after installation. - [EXTERNAL_DOWNLOADS]: The skill initiates network requests to the NPM registry to fetch executable code at runtime.
- Evidence: Automatic package installation initiated by
scripts/render.ts. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted diagram code and processes it with scripts that have file-writing and browser-control capabilities.
- Ingestion points:
scripts/render.tsaccepts user-supplied strings via the--codeflag. - Boundary markers: No delimiters or explicit safety instructions are used when handling user-provided Mermaid code.
- Capability inventory: The skill can write SVG and HTML files to the local system and execute capture commands via
agent-browser. - Sanitization: There is no evidence of Mermaid code validation or sanitization before it is passed to the rendering engine.
Audit Metadata