render-imessage-chat
Audited by Socket on Oct 9, 2026
2 alerts found:
AnomalySecurityThe code appears intended for local chat-video generation and contains no clear malware behavior. It has actionable input-handling risks: shell command injection through unvalidated values interpolated into execSync(), possible inline-script injection from message text containing </script>, and unrestricted local file reads through configured media paths. Validate numeric dimensions, invoke ffmpeg with a safely constructed argument list, escape script-embedded data for HTML context, and restrict file paths to approved directories.
The code has a significant command-injection risk when configuration or output-directory arguments are untrusted, because values are interpolated into `execSync`. Raw SVG insertion also allows active content in the generated page. These behaviors may be acceptable only when all inputs are trusted; use argument-based process spawning and validate or sanitize inputs.