pick-theme
Warn
Audited by Socket on Jul 25, 2026
1 alert found:
SecuritySecurityscripts/discover-themes.py
MEDIUMSecurityMEDIUM
scripts/discover-themes.py
This module is primarily a local theme discovery/parsing utility, but it has a significant supply-chain/sideloading risk: it dynamically loads and executes scripts/validate-theme-manifest.py via importlib.exec_module, with the lookup influenced by CLAUDE_PLUGIN_ROOT/--plugin-root and filesystem presence. If an attacker can affect plugin-root location or replace validate-theme-manifest.py, this becomes an arbitrary code execution vector. Aside from that, it performs filesystem reads/regex/JSON parsing and prints absolute paths and validation errors, which can leak local directory structure. No direct exfiltration or obvious malicious payload is evident in the provided fragment.
Confidence: 68%Severity: 70%
Audit Metadata