baoyu-format-markdown
Warn
Audited by Socket on Aug 20, 2026
1 alert found:
AnomalyAnomalyscripts/autocorrect.ts
LOWAnomalyLOW
scripts/autocorrect.ts
This module’s intent is benign (run a formatting/autocorrection tool), but it constructs and executes a shell command using execSync with direct interpolation of a caller-controlled filePath, creating a command-injection risk if filePath is attacker-influenced. It also relies on npx to execute an external tool/package at runtime, which increases execution/supply-chain exposure in the broader environment. No direct malicious payload behavior (e.g., network exfiltration, credential theft, persistence, obfuscation) is evident in this snippet alone.
Confidence: 74%Severity: 66%
Audit Metadata