mirror of
https://github.com/addyosmani/agent-skills.git
synced 2026-10-26 23:15:04 +00:00
The skillName argument from --behavioral has zero validation and is used directly in path.join() for reading .json files, reading SKILL.md, and WRITING .grading.json results. A value like '../../etc/passwd' traverses outside the project directory for both reads and writes. Fix: Validate skillName against /^[a-z0-9]+(-[a-z0-9]+)*$/ before any filesystem operations. This matches the existing KEBAB_CASE validation in skill-lint.js.