CVE-2026-33628: Invoiceninja/invoiceninja Cross-Site Scripting Vulnerability
MODERATECVE-2026-33628 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Invoiceninja/invoiceninja libraries in the Packagist ecosystem. The issue involves invoice ninja denylist bypass may lead to stored xss via invoice line items. Remediation is available by upgrading affected packages to version 5.13.4.
CVE-2026-33628 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-33628
To remediate this vulnerability, upgrade all affected Invoiceninja/invoiceninja dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade invoiceninja/invoiceninja to 5.13.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for invoiceninja/invoiceninja
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-33628, inspect your project dependencies for Invoiceninja/invoiceninja:
inspect dependencies for invoiceninja/invoiceninja
Analyze the terminal output to locate any version of Invoiceninja/invoiceninja in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.13.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Invoiceninja/invoiceninja, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-33628 Affected Invoiceninja/invoiceninja Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
invoiceninja/invoiceninja
|
Packagist |
< 5.13.4
|
5.13.4
|
References
Frequently Asked Questions
What is CVE-2026-33628?
Which Invoiceninja/invoiceninja versions are affected?
What version fixes CVE-2026-33628?
Is invoiceninja/invoiceninja affected?
What is the CVSS score of CVE-2026-33628?
What CWE is associated with CVE-2026-33628?
How can I check Packagist dependencies for CVE-2026-33628?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-98wm-cxpw-847p",
"modified" : "2026-03-27T21:34:58Z",
"published" : "2026-03-24T20:40:16Z",
"aliases" : [ "CVE-2026-33628" ],
"summary" : "Invoice Ninja Denylist Bypass may Lead to Stored XSS via Invoice Line Items",
"details" : "## Vulnerability Details\n\nInvoice 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.\n\nThe line item description field was not passed through `purify::clean()` before rendering.\n\n## Steps to Reproduce\n\n1. Login as any authenticated user\n2. Create or edit an invoice\n3. In a line item description, enter: `<img src=x onerror=alert(document.cookie)>`\n4. Save the invoice and preview it\n5. The XSS payload executes in the browser\n\n## Impact\n\n- **Attacker**: Any authenticated user who can create invoices\n- **Victim**: Any user viewing the invoice (including clients via the portal)\n- **Specific damage**: Session hijacking, account takeover, data exfiltration\n\n## Proposed Fix\n\nFixed in v5.13.4 by the vendor by adding `purify::clean()` to sanitize line item descriptions.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "invoiceninja/invoiceninja"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.13.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/invoiceninja/invoiceninja/security/advisories/GHSA-98wm-cxpw-847p"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33628"
}, {
"type" : "WEB",
"url" : "https://github.com/invoiceninja/invoiceninja/commit/b81a3fc302573fc4a53d61e8537dd19154ce1091"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/invoiceninja/invoiceninja"
}, {
"type" : "WEB",
"url" : "https://github.com/invoiceninja/invoiceninja/releases/tag/v5.13.4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-116", "CWE-184", "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-24T20:40:16Z",
"nvd_published_at" : "2026-03-26T21:17:07Z"
}
}