wechat-styler
Fail
Audited by Gen Agent Trust Hub on May 11, 2026
Risk Level: HIGHCOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/convert.mjsis vulnerable to shell command injection. It useschild_process.execto automatically open the generated HTML file in a browser. TheoutputPathvariable, which is derived from user-supplied input, is interpolated directly into the command string without adequate sanitization or escaping. This allows an attacker to execute arbitrary commands by including shell metacharacters such as semicolons, backticks, or command substitution sequences in the file path. - Evidence:
exec(open "${outputPath}", (err) => { ... })inscripts/convert.mjs. - [COMMAND_EXECUTION]: The script
scripts/generate-preview.mjsis also vulnerable to command injection. It useschild_process.execSyncto invoke the conversion script, passing thearticlePathvariable (sourced from user arguments) directly into the shell command template. - Evidence:
execSync(node "${convertScript}" "${articlePath}" --theme ${themeName} --output "${outputPath}", { stdio: 'pipe' })inscripts/generate-preview.mjs. - [COMMAND_EXECUTION]: Mitigation: The skill should avoid using
child_process.execorexecSyncwith strings. Instead, it should usechild_process.spawnorchild_process.execFile, which take arguments as an array and do not invoke a shell, thereby preventing injection attacks. Additionally, all user-provided inputs used in file system operations should be strictly validated and sanitized.
Recommendations
- AI detected serious security threats
Audit Metadata