diagnosing-bugs
Warn
Audited by Socket on Sep 22, 2026
1 alert found:
AnomalyAnomalyscripts/find-polluter.mjs
LOWAnomalyLOW
scripts/find-polluter.mjs
The code is a readable test-pollution diagnostic tool and contains no evident malware or covert malicious behavior. Its main security risk is intentional shell execution via spawnSync with shell:true. It is appropriate for trusted local input, but unsafe when --cmd, --list, or candidate filenames can be controlled by an untrusted party. The filename quoting reduces but does not eliminate shell-injection risk.
Confidence: 98%Severity: 58%
Audit Metadata