hwc-media-content
Audited by Socket on Sep 14, 2026
2 alerts found:
SecurityAnomalyNo evidence of supply-chain malware or unauthorized data collection is present. The primary security concern is potential DOM XSS because user-controlled marker descriptions are inserted with insertAdjacentHTML without escaping. Use createElement/textContent or sanitize the description before insertion, and add null checks around region and DOM lookups. The code also has robustness issues when marker state and Wavesurfer state are inconsistent.
The code is a legitimate Stimulus and Wavesurfer integration example and shows no evidence of supply-chain malware or intentional malicious behavior. It contains a moderate security issue: user-controlled marker descriptions are incorporated into HTML and inserted with insertAdjacentHTML() without escaping, creating a potential XSS/HTML injection vulnerability. Use textContent or DOM node creation instead. Confidence is high for the identified data flow and issue.