directions-lab
Audited by Socket on Nov 16, 2026
2 alerts found:
SecurityAnomalyThis code provides generated-file checking, writing, and rollback, but caller-controlled relative paths containing traversal segments can cause writes and directory creation outside the supplied root. Rollback can then recursively delete directories it recorded outside root, creating a potentially serious filesystem integrity risk; no network activity, credential access, or other malware behavior is present in this fragment.
This code defines Vite development and build/preview launchers. It does not itself show malicious behavior, but unescaped ctx.configFile, ctx.ports.dev, ctx.ports.preview, ctx.envOutDir, and ctx.staticDir values are interpolated into shell commands and could enable command injection if attacker-controlled; severity depends on the trustworthiness of ctx. No suspicious domains, credentials, or data-exfiltration behavior appear in this fragment.