svg-diagram
Warn
Audited by Gen Agent Trust Hub on Mar 1, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The provided script for converting Mermaid syntax to SVG uses
child_process.execSyncto run shell commands. The command string is constructed by directly interpolating values from an options object, specifically thebgColor,width, andheightproperties. This pattern is susceptible to command injection if an attacker can control these parameters and include shell metacharacters such as semicolons or pipes. - [EXTERNAL_DOWNLOADS]: The skill utilizes
npxto execute the Mermaid CLI, which may trigger the download and execution of the@mermaid-js/mermaid-clipackage from the NPM registry at runtime. Additionally, the SVG templates and processing logic include@importrules that fetch font resources from the external CDNhttps://cdn.jsdelivr.net/gh/orioncactus/pretendard/.
Audit Metadata