impeccable
Warn
Audited by Socket on Apr 30, 2026
1 alert found:
AnomalyAnomalyscripts/live-inject.mjs
LOWAnomalyLOW
scripts/live-inject.mjs
This module is not overtly malicious in the snippet (no exfiltration, eval, credential theft, or remote command execution), but it does implement powerful client-side influence: it injects a script tag from http://localhost:${port}/live.js and patches CSP meta tags to allow that origin and blob: images. If an attacker can control `port` or the set of files being patched, it could be used to facilitate unauthorized script injection or undermine CSP protections. Overall risk is medium because the capability is high-impact, even though the intent appears consistent with a local dev/live-reload tool.
Confidence: 66%Severity: 62%
Audit Metadata