hugging-face-stat
Warn
Audited by Socket on Sep 16, 2026
1 alert found:
SecuritySecurityhf_stats.sh
MEDIUMSecurityMEDIUM
hf_stats.sh
The script appears intended as a benign Hugging Face statistics query tool, but it contains a significant command-line-to-Python code injection vulnerability because REPO_ID is embedded unescaped into Python source. A crafted repository ID can execute arbitrary Python code locally when parsing begins. Use safe argument passing or JSON/string escaping and validate the repository ID format. No clear malicious payload or supply-chain malware behavior is present in the supplied fragment.
Confidence: 98%Severity: 78%
Audit Metadata