engineer-design-diagram
Warn
Audited by Socket on Sep 18, 2026
1 alert found:
AnomalyAnomalytemplates/mermaid-fallback.html
LOWAnomalyLOW
templates/mermaid-fallback.html
The fragment is a legitimate Mermaid fallback HTML template and contains no evident malware. Its main security issue is potential HTML/XSS injection because all template placeholders are unescaped, especially MERMAID_SOURCE inside the pre element. Inputs should be contextually escaped or safely serialized, Mermaid should be configured for untrusted content, and the CDN dependency should be pinned or self-hosted with integrity controls.
Confidence: 98%Severity: 62%
Audit Metadata