backend-report-generation
Audited by Socket on Jul 8, 2026
1 alert found:
SecurityThis fragment is not obviously a stealth malware package, but it includes multiple high-severity security risks that can be exploited for takeover when templates/conditions/themes/IDs are influenced by an attacker: (1) arbitrary expression evaluation via eval() for conditions, (2) dynamic Jinja rendering from template strings/sources (SSTI risk if attacker controls templates), (3) potential path traversal/write-anywhere in the filesystem template store due to unsanitized template.id/template_id/format, and (4) potential HTML injection/XSS through logo_url/footer_text injection. If this library is used with any untrusted inputs, it should be treated as high risk and refactored to remove eval, validate IDs/formats, and avoid rendering untrusted templates.