Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

home-assistant/frontend
dev @ f08ffef
21
Fixes
13
CVEs
CRITICAL
Peak severity
16.7%
Coverage
Highlights
Cross-Site Scripting (XSS): 5 prior fixes. Scrutinize any change in this area.
src/auth/ha-authorize.ts: most-fixed (2 issues). Treat as high-risk during review.
7 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Cross-Site Scripting (XSS): The markdown rendering subsystem has repeatedly suffered from Stored XSS and sanitization bypasses, particularly through raw SVG elements and ineffective XSS filtering logic, requiring strict default allowlists.
Cross-Site Scripting (XSS): ECharts tooltip HTML rendering allowed arbitrary execution of user-controlled fields. Fixing this required converting imperative formatters to Lit templates to enforce automatic escaping.
Auth Bypass: Incorrect request payload structures in Hass.io ingress session validation over WebSockets can lead to authentication bypass, permitting unauthorized backend access.