email-designer
Audited by Socket on Sep 20, 2026
2 alerts found:
AnomalySecurityThe fragment is readable utility code and contains no direct evidence of malware or intentional sabotage. It does, however, automatically invoke pip and install third-party packages at runtime, creating a meaningful supply-chain and deployment security risk. The package specifications are fixed, and feature-name input does not provide command injection in this implementation. Prefer declaring and pinning dependencies during build or deployment rather than installing them from library code.
The code is a straightforward local template manager with no evident malware. It has security risks if its parameters are exposed to untrusted callers: arbitrary file reads through html_path and path traversal leading to writes, reads, or recursive deletion through name. Names should be validated using a strict allowlist and resolved paths should be verified to remain within TEMPLATES_DIR; html_path should likewise be constrained if untrusted. Confidence is high for identifying these risks, while malicious intent is not indicated.