Invoice Ninja Denylist Bypass may Lead to Stored XSS via Invoice Line Items
Impact
Invoice line item descriptions in Invoice Ninja v5.13.0 bypass the XSS denylist filter, allowing stored XSS payloads to execute when invoices are rendered in the PDF preview or client portal.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 5.13.4Ecosystem versions | 5.13.4 |
Version evidence: OSV · GHSA-98wm-cxpw-847p
View original version evidence (0 explicit versions)
Original source description
Vulnerability Details
Invoice line item descriptions in Invoice Ninja v5.13.0 bypass the XSS denylist filter, allowing stored XSS payloads to execute when invoices are rendered in the PDF preview or client portal.
The line item description field was not passed through purify::clean() before rendering.
Steps to Reproduce
- Login as any authenticated user
- Create or edit an invoice
- In a line item description, enter:
<img src=x onerror=alert(document.cookie)> - Save the invoice and preview it
- The XSS payload executes in the browser
Impact
- Attacker: Any authenticated user who can create invoices
- Victim: Any user viewing the invoice (including clients via the portal)
- Specific damage: Session hijacking, account takeover, data exfiltration
Proposed Fix
Fixed in v5.13.4 by the vendor by adding purify::clean() to sanitize line item descriptions.
References
- Security advisory github.com/invoiceninja/invoiceninja/security/advisories/GHSA-98wm-cxpw-847p
- Security advisory nvd.nist.gov/vuln/detail/CVE-2026-33628
- Patch github.com/invoiceninja/invoiceninja/commit/b81a3fc302573fc4a53d61e8537dd19154ce1091
- Source reference github.com/invoiceninja/invoiceninja
- Release notes github.com/invoiceninja/invoiceninja/releases/tag/v5.13.4