svg-design
Warn
Audited by Socket on Sep 7, 2026
1 alert found:
SecuritySecurityassets/preview.html
MEDIUMSecurityMEDIUM
assets/preview.html
This fragment is primarily client-side UI logic for selecting compare items, but it also repeatedly rewrites SVG image URLs and—most importantly—injects and executes variants.js every 3 seconds via dynamically created script tags. Without visible integrity/origin controls in the snippet, this creates a significant supply-chain/runtime execution risk: any compromise or unexpected resolution of variants.js can lead to arbitrary script execution in the page context. The only additional notable concern is unescaped interpolation of card.dataset.id into a querySelector attribute selector string, which is a smaller correctness/injection-surface issue.
Confidence: 55%Severity: 75%
Audit Metadata