beautiful-mermaid

Warn

Audited by Socket on Nov 27, 2026

1 alert found:

Anomaly
AnomalyLOW
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
Analyzed At
Nov 27, 2026, 04:47 AM
Package URL
pkg:socket/skills-sh/mastra-ai%2Fworkspace-workshop-code%2Fbeautiful-mermaid%2F@984861b02c122ba84a357fc49279f3662dd15af7e60b683e6038f11d98e15fc6