Priority: high
Description
User-supplied data (vaccine names, wallet addresses) is rendered in the frontend. Tests should verify that XSS payloads are sanitized and not executed.
Acceptance Criteria
- Test: vaccine name containing
<script>alert(1)</script> is rendered as text, not executed
- Test: wallet address containing HTML entities is escaped correctly
- Test: NFTCard does not use
dangerouslySetInnerHTML with unsanitized data
- Test: API responses containing script tags are not executed when rendered
- Tests run in a real browser environment (Playwright or Cypress)
Priority: high
Description
User-supplied data (vaccine names, wallet addresses) is rendered in the frontend. Tests should verify that XSS payloads are sanitized and not executed.
Acceptance Criteria
<script>alert(1)</script>is rendered as text, not executeddangerouslySetInnerHTMLwith unsanitized data