mermaid-diagram-generator

Warn

Audited by Socket on Oct 9, 2026

1 alert found:

Security
SecurityMEDIUM
scripts/generate_diagram.js

The code has a command-injection vulnerability: untrusted command-line or API values can reach exec through a shell command string. Use execFile or spawn with an argument array and validate values. The predictable temporary file also creates an overwrite and concurrency risk. No clear evidence of intentional malware or obfuscation is present.

Confidence: 98%Severity: 76%
Audit Metadata
Analyzed At
Oct 9, 2026, 03:40 PM
Package URL
pkg:socket/skills-sh/zxhfighter%2Fskills-hub%2Fmermaid-diagram-generator%2F@b447f0b296e9576a11f20a1a6fd64fba6fa4ae48ab6956c150f1da45070b8c76