pretty-mermaid
Audited by Socket on Aug 23, 2026
2 alerts found:
Anomalyx2No direct malware behavior is evident in this module (no network/exfiltration, credential access, or obfuscated payloads). The main security concern is supply-chain integrity: if 'beautiful-mermaid' is missing, the script runs npm install at runtime via execSync and then dynamically imports code from node_modules without pinning or integrity verification. Output file paths are derived from filesystem filenames and are written to disk; this is generally local-only but could lead to unintended overwrites under unusual filesystem conditions.
This module is primarily a local Mermaid-to-SVG/ASCII CLI renderer, with no direct evidence of classic malware (no exfiltration, shell/persistence, or code execution based on Mermaid input in this file). The main security concern is supply-chain risk: if the dependency is missing, the script runs a networked 'npm install' at runtime and then immediately imports code from node_modules without version/integrity pinning. A secondary concern is that --output is unrestricted, enabling arbitrary file overwrite within the executing user's permissions.