web-design-guidelines
Audited by Socket on Sep 15, 2026
2 alerts found:
Anomalyx2The fragment implements accessible form-error display and does not show malicious behavior. However, assigning interpolated `error.fieldId` and `error.message` to `innerHTML` is a security risk if either value can be influenced by untrusted input. Use DOM APIs such as `createElement` and `textContent`, or rigorously escape HTML and validate field identifiers before constructing links.
No malicious behavior or supply-chain backdoor is evident. The code is an accessibility example, but it contains two potential client-side injection vulnerabilities: unsanitized data.html and interpolated showToast inputs passed to innerHTML. Use trusted static templates, textContent, DOM APIs, strict type allowlists, or a proven HTML sanitizer such as DOMPurify before inserting HTML.