harmonyos-code-review
Warn
Audited by Socket on Sep 7, 2026
1 alert found:
SecuritySecuritysrc/utils/commit-collector.ts
MEDIUMSecurityMEDIUM
src/utils/commit-collector.ts
No clear evidence of embedded malware (no network/exfiltration, credential theft, or persistence) is present. However, the code executes shell commands via `child_process.execSync` using a command string built from interpolated `branch/since/until/maxCount` without robust validation/argument-safe APIs, which is the primary command-injection risk. Additionally, it exports repository-controlled text into CSV without preventing spreadsheet formula injection, and it writes to an unvalidated `outputPath`, creating a potential unsafe-write risk if options are untrusted.
Confidence: 78%Severity: 70%
Audit Metadata