industry-research-report
Warn
Audited by Socket on Sep 2, 2026
1 alert found:
AnomalyAnomalyscripts/render.py
LOWAnomalyLOW
scripts/render.py
No clear evidence of intentional malware (e.g., stealer/backdoor behavior) is present in this module. The dominant security risk is “unsafe content in generated artifacts”: Mermaid-generated SVG and Markdown-derived HTML fragments are embedded into the final HTML without explicit sanitization/allowlisting. Additionally, the module executes an external `mmdc` binary on user-controlled Mermaid content, which increases operational and dependency risk (DoS and potential vulnerabilities in the renderer). Use of this code should include sanitization of rendered HTML/SVG (or strict template escaping) and isolation/hardening of the `mmdc` execution environment.
Confidence: 64%Severity: 55%
Audit Metadata