hwc-stimulus-fundamentals
Warn
Audited by Socket on Oct 4, 2026
1 alert found:
AnomalyAnomalyreferences/2023-12-19-stimulus-outlets-api.md
LOWAnomalyLOW
references/2023-12-19-stimulus-outlets-api.md
No evidence of malicious behavior or supply-chain malware is present. The code is a legitimate Stimulus Outlets API example, but it has a security weakness: unescaped job fields are inserted into HTML via `insertAdjacentHTML`, which can enable XSS if the jobs value is attacker-controlled. Use DOM property assignments or an HTML-escaping routine, validate statuses, and use `CSS.escape(job.id)` for selector construction. Also handle missing outlet jobs and replace `break` with appropriate logic if all jobs should be processed.
Confidence: 98%Severity: 62%
Audit Metadata