bid-template-fill
Warn
Audited by Socket on Jul 5, 2026
1 alert found:
AnomalyAnomalyscripts/fill_template.js
LOWAnomalyLOW
scripts/fill_template.js
Overall, this module behaves like a document-template filler: it extracts a DOCX, performs placeholder/date substitutions with XML-escaped values, then repacks. No explicit data theft/backdoor behavior is present in this fragment. However, the code executes external tools and (on Windows) generates/executed PowerShell with '-ExecutionPolicy Bypass', and archive extraction lacks visible path-safety controls (raising potential ZIP-Slip/path traversal concerns depending on the underlying unzip behavior). Treat templatePath/dataPath as untrusted and review/harden path handling and extraction/packing safety.
Confidence: 62%Severity: 58%
Audit Metadata