debug-mode
Audited by Socket on Jul 22, 2026
2 alerts found:
SecurityAnomalyThis module functions as a silent telemetry/debug exfiltration helper: it accepts an arbitrary `event` object, injects a fixed session identifier, serializes the entire contents, and sends it via HTTP POST to `DEBUG_MODE_URL`. Because it forwards unfiltered caller data and suppresses errors, it can leak sensitive information if `DEBUG_MODE_URL` is external or misconfigured. No explicit malware/payload execution is present in the snippet, but the data-transmission pattern and lack of safeguards make it a meaningful supply-chain security concern.
This module functions as a client-side logger that can exfiltrate arbitrary caller-provided event data to a configured remote endpoint via `sendBeacon`/`fetch`, while attaching a fixed session identifier. Because it forwards the entire `event` object with no redaction/allowlisting and uses `keepalive` plus silent error suppression, the main risk is unintended collection or leakage of sensitive user data to the network. No clear evidence of malware (e.g., backdoor, credential theft routines, or obfuscated payload execution) is present in this snippet, but the privacy/security risk from indiscriminate payload forwarding is significant.