impeccable
Audited by Socket on Nov 3, 2026
2 alerts found:
SecurityAnomalyThe code implements a local live-preview and staged-edit server, but has a significant local security flaw: wildcard CORS exposes the embedded authentication token from /live.js to arbitrary websites, enabling access to token-protected project-data endpoints. The /source route also uses an unsafe string-prefix containment check, and uncapped request bodies create a denial-of-service risk. No evidence of malware or external exfiltration is present in this fragment; severity is high for confidentiality when a user visits an attacker-controlled site while the server is running.
No definitive malware indicators (no credential theft, backdoor, persistence, or direct eval/exec of attacker-controlled code) are visible in this module. The security risk is primarily due to capability breadth: it can fetch and inline remote resources referenced by attacker-influenced DOM/CSS and can load caller-supplied Web Workers (workerUrl execution boundary). If the consuming application processes untrusted DOM/CSS or untrusted options, the module may cause unintended outbound requests and increase rendering/injection attack surface in the generated SVG/stylesheet context.