diagram-review
Pass
Audited by Gen Agent Trust Hub on Sep 24, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill utilizes
npxto download and execute pinned versions of@mermaid-js/mermaid-cli@11.17.0and@probelabs/maid@0.0.29from the NPM registry. These are well-known services, and the versions are explicitly pinned to ensure consistency and security. - [COMMAND_EXECUTION]: The
render.py,mermaid_lint.py, andsvg_lint.pyscripts usesubprocess.run()to call various system binaries such asmmdc,rsvg-convert,dot, and headless Chrome. The command construction uses list-based arguments, which mitigates the risk of shell-based command injection. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted diagram source code provided by users, creating a surface for potential indirect prompt injection.
- Ingestion points: Diagram source files including
.mmd,.svg, and.dot, as well as Mermaid blocks within Markdown files. - Boundary markers: The instructions explicitly require running deterministic lints and a security gate before rendering any content.
- Capability inventory: The skill has the ability to write rendered PNG files to the local file system and execute CLI tools.
- Sanitization: The
svg_lint.pyscript implements a strict whitelist for SVG elements and attributes. It explicitly detects and blocks active content, including<script>tags, event handlers (e.g.,onclick), and externalhrefreferences to prevent cross-site scripting (XSS) or renderer-based exploits.
Audit Metadata