Security context

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

ava-labs/Avalanche-Wallet-SDK
dev @ a8bc8c4
3
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Reflected XSS: 3 prior fixes. Scrutinize any change in this area.
src/Asset/Assets.ts: most-fixed (3 issues). Treat as high-risk during review.
3 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.

Reflected XSS: Token metadata (name/symbol) is rendered into the DOM without consistent sanitization; three separate fixes were needed, indicating the initial fix was incomplete or regressed. The switch from DOMPurify to xss suggests the first sanitizer was deemed insufficient.
Reflected XSS: Same vulnerable sink as Assets.ts; the ERC20 token class also exposes name/symbol to rendering paths. The fixes in this file were applied in tandem with Assets.ts, but the repeated patching shows the risk was not fully eliminated on the first attempt.