nextjs-developer
Audited by Socket on Aug 23, 2026
1 alert found:
AnomalyNo strong indicators of intentional supply-chain malware/backdoor behavior in the fragment (no obfuscation, no dynamic execution, no suspicious network/exfiltration patterns). The primary security concern is uploadAvatar: it writes attacker-controlled bytes to a public directory using a raw client-controlled filename for filesystem path construction, with no shown sanitization/allowlisting/size/type validation—creating a plausible path traversal/overwrite and malicious-content hosting risk. Separately, destructive/mutating actions (delete/create/update) do not show explicit authorization/input validation within the presented snippets; if not enforced elsewhere, this could enable unauthorized data modification despite the presence of client-side confirmation and rate limiting.