create-gh-pages-site
Warn
Audited by Socket on Aug 6, 2026
1 alert found:
AnomalyAnomalyscripts/new-site.mjs
LOWAnomalyLOW
scripts/new-site.mjs
No clear evidence of intentional malware (no eval/Function, no exfiltration, no backdoor behavior) in the provided fragment. However, it performs a high-impact supply-chain operation by cloning a caller-influenced registry and then copying and rewriting attacker-controlled template files into the user’s output directory. Additionally, the template path uses join(templatesRoot, template) without visible sanitization, which could allow path traversal if not handled elsewhere. Treat registry/template inputs as untrusted and ensure template name/path validation and trusted registries.
Confidence: 62%Severity: 60%
Audit Metadata