walkthrough
Warn
Audited by Socket on Aug 15, 2026
1 alert found:
AnomalyAnomalyscripts/build-walkthrough.mjs
LOWAnomalyLOW
scripts/build-walkthrough.mjs
No direct malicious “payload” behavior (exfiltration/backdoor/credential theft) is evident in this code fragment. However, it has high application-level security risk if the Markdown or Mermaid diagram sources can be controlled by an attacker: it directly injects raw HTML from ::: html blocks into the output and injects Mermaid-generated SVG into the HTML without sanitization. Additionally, when using the runtime fallback it inlines Mermaid and initializes it with securityLevel:'loose', increasing the chance that unsafe/HTML-injecting diagram constructs could be rendered on the client. Treat this generator as safe only for fully trusted input or add sanitization/strict trust boundaries.
Confidence: 66%Severity: 63%
Audit Metadata