frontend
Fail
Audited by Gen Agent Trust Hub on Apr 10, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
pwa/react-pwa/scripts/generate-icons.tsconstructs a Node.js script as a string and executes it usingDeno.Command. The script interpolates user-provided file paths (from CLI arguments) directly into the string using single quotes (e.g.,sharp('${inputPath}')). If a user or an automated process provides a file path containing a single quote followed by JavaScript code, it will be executed by the Node.js process. - [REMOTE_CODE_EXECUTION]: The vulnerability in
generate-icons.tsallows for arbitrary JavaScript execution within the Node.js subprocess. This can be exploited to run system commands, exfiltrate data, or gain further access to the host environment where the AI agent is running the skill.
Recommendations
- AI detected serious security threats
Audit Metadata