claude-blog-brain
Warn
Audited by Socket on Nov 3, 2026
1 alert found:
AnomalyAnomalysite/scripts/sanitize-public.mjs
LOWAnomalyLOW
site/scripts/sanitize-public.mjs
This is a public-content sanitization and manifest-generation utility with no evident data exfiltration or malware behavior. Its main security risk is destructive filesystem deletion: the caller-controlled outputRoot is recursively removed, and the check does not prevent it from being an ancestor of brainRoot or another valuable directory. It also aborts rather than excluding selected private entries. Severity is moderate and depends on the supplied output path; no credentials or local paths are transmitted.
Confidence: 99%Severity: 55%
Audit Metadata