hwc-stimulus-fundamentals

Warn

Audited by Socket on Nov 1, 2026

1 alert found:

Anomaly
AnomalyLOW
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
Analyzed At
Nov 1, 2026, 06:46 PM
Package URL
pkg:socket/skills-sh/lucianghinda%2Frubypowers%2Fhwc-stimulus-fundamentals%2F@c3175d0f6fdcf232204e214e784bf4ad7fbd2ec7