elements-complaint-generator
Warn
Audited by Socket on Sep 7, 2026
1 alert found:
AnomalyAnomalyscripts/ingest_full_templates.py
LOWAnomalyLOW
scripts/ingest_full_templates.py
The code is a local ingestion/build utility that unpacks DOCX (ZIP) archives and writes extracted files plus a manifest. No clear indicators of intentional malware (no network/exfiltration, no dynamic execution, no credential theft) are present. However, it performs unsafe ZIP extraction using zipfile.ZipFile(...).extractall(tree_dir) without validating ZIP member paths, creating a meaningful Zip Slip/path traversal risk that could allow writing outside the intended output directory if a maliciously crafted .docx is processed. If inputs are fully trusted and operator runs in a controlled environment, risk is lower; if inputs can be attacker-controlled, this is a significant security concern.
Confidence: 75%Severity: 62%
Audit Metadata