make-brand
Audited by Socket on Aug 3, 2026
3 alerts found:
SecurityAnomalyx2This code is a mockup/template generator that returns HTML built via template literals. It does not escape or sanitize interpolated brand/copy fields, creating a significant XSS risk if rendered without strict sanitization. Additionally, the sticker-sheet generator inlines raw SVG file contents directly into the HTML, increasing the likelihood of active-content/script execution from SVG. The module also reads local assets from a directory derived from `dir` without validation in this snippet, which could allow unintended file reads/injection if `dir` is not strictly controlled. No direct evidence of credential theft, network exfiltration, or process execution appears in the provided fragment; the primary security concern is unsafe content/SVG rendering behavior.
This module is not indicative of clear supply-chain malware (no exfiltration, credential access, or suspicious network activity). The main security concern is an injection surface: caller-controlled `entry.name` is interpolated unescaped into an HTML `<title>` tag inside a returned, executable HTML string. If the consuming application injects this returned HTML into the DOM unsafely, this can enable HTML/DOM XSS. Separately, the generated runtime modifies global state and can run a continuous requestAnimationFrame seeking loop, creating a potential performance/availability risk if used at scale or in hostile contexts.
No direct malware behavior (no backdoor, credential theft, persistence, command execution, or exfiltration) is evident in this code. The dominant risk is operational: it acts as a headless scraper/downloader that navigates to attacker-influenced content and downloads multiple file types to disk, including inline SVGs taken directly from the DOM, which can become dangerous in downstream usage. Additionally, the nonstandard dynamic loading strategy for playwright-core increases supply-chain/integrity risk depending on execution working directory and packaging hygiene.