refactor
Warn
Audited by Socket on Aug 16, 2026
1 alert found:
SecuritySecurityscripts/context-verify.mjs
MEDIUMSecurityMEDIUM
scripts/context-verify.mjs
The fragment’s primary risk is direct synchronous OS command execution via `execSync` using a command string derived from externally influenced configuration/environment inputs, with no visible allowlist or sanitization. If an attacker can control either the provided value or the environment variable, this becomes a command injection/RCE vector in the repository context. Additionally, error messages are serialized into the JSON output, which may leak sensitive execution details in failure scenarios. No explicit malicious payload or exfiltration behavior is evident from this snippet alone.
Confidence: 62%Severity: 72%
Audit Metadata