Advisory

GHSA-98wm-cxpw-847p

Also known as: CVE-2026-33628

Summary

Invoice Ninja Denylist Bypass may Lead to Stored XSS via Invoice Line Items

Details

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

  1. Login as any authenticated user
  2. Create or edit an invoice
  3. In a line item description, enter: <img src=x onerror=alert(document.cookie)>
  4. Save the invoice and preview it
  5. 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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-03-24 20:40 UTC
Modified
2026-03-27 21:50 UTC

Affected packages and fixes

invoiceninja/invoiceninja

Packagist · All systems

Affected

  • introduced 0, fixed 5.13.4 (ecosystem)

Fixed versions

5.13.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences