skill-studio
Audited by Socket on Sep 19, 2026
2 alerts found:
Anomalyx2The code is ordinary local session-storage logic and shows no indicators of malware, data exfiltration, persistence, or obfuscation. It has a meaningful path traversal and potentially arbitrary file read/write risk because session_id is directly joined to the storage root without validation. Session IDs should be restricted to safe identifiers, and resolved paths should be verified to remain under the root; symlink handling and file permissions should also be considered. Markdown input should be escaped or sanitized if rendered.
No clear malicious behavior or supply-chain malware is present. The main security concern is insufficient path validation in load_preset(), which may allow reads outside PRESET_DIR through traversal or absolute paths. Restrict name to a validated filename stem and resolve the candidate path, confirming it remains under PRESET_DIR.