svg-export
Warn
Audited by Gen Agent Trust Hub on Jul 12, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: Potential for shell command injection through user-controlled arguments. The skill takes a
preset-slug($ARGUMENTS[0]) and an optional--outpath from the user and interpolates them directly into severalBashcommands, includingnpx svgo -i output/<slug>.svg ...,node lib/render-cli.js <slug>, andcp output/<slug>.min.svg <path>. An attacker could provide a malicious string (e.g., using;or&) as a slug to execute arbitrary shell commands within the environment. - [DATA_EXFILTRATION]: Risk of path traversal and arbitrary file manipulation. The
slugargument is used to construct a source file path (output/<slug>.svg) without validation, and the--outargument allows users to specify an arbitrary destination path for thecpcommand. This behavior could be exploited to read files from or write files to unauthorized locations on the system, especially as the skill explicitly attempts to create missing parent directories. - [PROMPT_INJECTION]: Presence of an indirect prompt injection surface through the processing of external SVG data.
- Ingestion points: The skill reads and parses content from
output/<slug>.svgto verify structure and metadata. - Boundary markers: None. The skill expects valid XML/SVG but does not implement delimiters or warnings to ignore instructions embedded in the file's text or metadata fields.
- Capability inventory: The skill has access to shell execution (
Bash), file system reads/writes, and local script execution (node lib/render-cli.js). - Sanitization: There is no evidence of sanitization or escaping of the SVG content (e.g.,
<title>or<desc>tags) before it is processed or included in the final report. - [EXTERNAL_DOWNLOADS]: The skill downloads the SVGO optimization tool from the official NPM registry using
npx svgoat runtime.
Audit Metadata