svg-design
Warn
Audited by Gen Agent Trust Hub on Sep 7, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
assets/preview.htmlfile implements a live-reload system that dynamically injects and executes code from a localvariants.jsfile every 3 seconds usingdocument.createElement('script')anddocument.head.appendChild(). This constitutes dynamic loading from a computed path. - [DYNAMIC_EXECUTION]: The preview system in
assets/preview.htmlis susceptible to cross-site scripting (XSS). TherenderCardandsizeRampfunctions interpolate variant data fields (specifically image paths) directly into<img>tags without adequate sanitization, potentially allowing arbitrary JavaScript execution if malicious filenames are processed. - [COMMAND_EXECUTION]: The
references/editing-workflow.mdfile instructs the agent to use shell commands (openorxdg-open) to launch a web browser and display local files. - [EXTERNAL_DOWNLOADS]: The skill recommends the global installation of the
svgopackage via npm for SVG processing tasks. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted SVG data and provides instructions to the agent to inspect these files for malicious attributes or scripts, recognizing the attack surface for indirect prompt injection. 1. Ingestion points: User-provided SVG assets referenced in
references/svg-basics.mdandSKILL.mdworkflows. 2. Boundary markers: None. 3. Capability inventory: Local file creation/modification and browser execution via CLI. 4. Sanitization: Instructions recommend manual inspection of SVG XML content for scripts, event attributes, and data URLs.
Audit Metadata