beautiful-mermaid
Warn
Audited by Socket on Sep 15, 2026
1 alert found:
AnomalyAnomalyscripts/render.ts
LOWAnomalyLOW
scripts/render.ts
No clear malicious backdoor behavior is present in this file. The dominant security concern is supply-chain and execution-time risk: the tool dynamically installs and imports `beautiful-mermaid` at runtime using execSync-based package manager commands if it is missing. A secondary concern is that the SVG is written to a path derived from user input without explicit directory restriction or overwrite safeguards, which could be abused for unintended file overwrites. Any web-surface XSS risk would depend on how the generated SVG is later used and whether it is sanitized by downstream components.
Confidence: 62%Severity: 50%
Audit Metadata