An HTML injection issue exists in the `render invoice template()` function. Authenticated organization members can inject HTML and CSS markup into custom-template invoice PDFs by placing malicious content in the `notes`, `terms`, `client name`, or `address` fields. This allows attackers to overlay totals, payee information, and payment instructions in PDFs delivered via downloads, public links, and emails.