generating-infographics
Warn
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The file
lib/dom-setup.jsconfigures thejsdomenvironment with therunScripts: 'dangerously'option. This allows the execution of any JavaScript contained within the SVG or HTML content being rendered for the infographic. Additionally,lib/exporter.jslaunchespuppeteerwith the--no-sandboxand--disable-setuid-sandboxflags, which reduces the security isolation of the headless browser process. - [INDIRECT_PROMPT_INJECTION]: The skill processes external data and assets, creating a vulnerability surface for indirect instructions.
- Ingestion points: The skill ingests user-provided JSON data via the
--dataflag ingenerate.jsand loads external image files from a configurable directory inlib/illustrations.js. - Boundary markers: The skill does not implement clear boundary markers or instructions to ignore potential injections within the ingested data during interpolation.
- Capability inventory: The skill is granted access to the
Bash,Write, andReadtools. It also launches external processes, including a headless browser and a script-enabled virtual DOM. - Sanitization: The
sanitizeSVGfunction inlib/illustrations.jsonly removes XML declarations and comments. It fails to strip dangerous elements such as<script>tags or event handlers. Combined with the dangerousjsdomconfiguration, this creates a path for malicious code execution within the rendering environment if a poisoned SVG file is provided. - [COMMAND_EXECUTION]: The skill utilizes the
Bashtool to execute thenode generate.jscommand. This process involves passing user-influenced data through command-line arguments, which is a standard part of its workflow but increases the risk profile if inputs are not strictly validated.
Audit Metadata