Invoice Ninja CVE-2026-33628
MEDIUMVulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The CVSS v3.1 score of 5.4 (Medium) with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N reflects a network-accessible vulnerability requiring low attack complexity and valid user credentials to exploit, with cross-site impact and low confidentiality and integrity impact. The requirement for user interaction (UI:R) moderates the score, as the payload only executes when another user views the invoice. The privilege requirement (PR:L) means any authenticated user—potentially including low-privilege roles—can inject payloads. The real-world risk is significant because the vulnerability is stored (not reflected), persistence increases likelihood of victim exposure, and the attack surface is large in multi-user invoice environments where clients or accountants regularly access invoices. No EPSS score or KEV status is provided in the intelligence data, but the availability of a proof-of-concept steps and a public patch suggests the vulnerability is known and likely has working exploits in circulation. This is a priority vulnerability for any organization running Invoice Ninja versions prior to 5.13.4, especially those with untrusted or semi-trusted user bases. |
| Exploit ScenarioDerived | An authenticated Invoice Ninja user with invoicing privileges (or a compromised low-privilege account) creates a new invoice and enters the payload |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 24, 2026
Invoice Ninja v5.13.0 and earlier contain a stored cross-site scripting (XSS) vulnerability in invoice line item descriptions that bypass the application's XSS denylist filter, allowing authenticated attackers to inject malicious JavaScript that executes when invoices are viewed in PDF preview or the client portal. Any authenticated user can create or modify invoices to inject payloads such as <img src=x onerror=alert(document.cookie)>, and victims viewing the invoice-including clients with lower privilege levels-will have the payload execute in their browser context, enabling session hijacking, account takeover, and data exfiltration. A patch is available in v5.13.4 via the vendor's GitHub repository.
Earlier versions of this analysis (1)
Invoice Ninja v5.13.0 and earlier contain a stored cross-site scripting (XSS) vulnerability in invoice line item descriptions that bypass the application's XSS denylist filter, allowing authenticated attackers to inject malicious JavaScript that executes when invoices are viewed in PDF preview or the client portal. Any authenticated user can create or modify invoices to inject payloads such as <img src=x onerror=alert(document.cookie)>, and victims viewing the invoice—including clients with lower privilege levels—will have the payload execute in their browser context, enabling session hijacking, account takeover, and data exfiltration. A patch is available in v5.13.4 via the vendor's GitHub repository.
RemediationAI
Immediately upgrade Invoice Ninja to v5.13.4 or later, available from the official GitHub releases page (https://github.com/invoiceninja/invoiceninja/releases/tag/v5.13.4). If immediate patching is not feasible, implement temporary controls: restrict invoice creation and editing permissions to highly trusted administrators only, disable client portal access until patching is complete, and audit existing invoices for injected payloads (search line item descriptions for HTML event handlers or script tags). Additionally, implement a web application firewall (WAF) rule to block requests containing suspicious HTML/JavaScript patterns in the line item description parameter. Review the security patch commit (b81a3fc302573fc4a53d61e8537dd19154ce1091) to understand the fix if custom sanitization is needed.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Invoice Ninja (CPE: pkg:composer/invoiceninja_invoiceninja) is a self-hosted or cloud-based invoicing application written in PHP. The vulnerability stems from a failure to sanitize user input in the line item description field before rendering it in HTML contexts (PDF preview and client portal). The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), a classic stored XSS flaw where user-controlled data is reflected without proper encoding or filtering. The vendor's denylist-based XSS filter (likely a custom or outdated implementation) failed to catch HTML event handlers embedded in image tags. The fix, implemented in commit b81a3fc302573fc4a53d61e8537dd19154ce1091, introduces the purify::clean() function—presumably a reference to HTMLPurifier or similar whitelist-based sanitization library—to properly neutralize HTML markup before rendering.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
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.
Executive ViewAI
Organizations using Invoice Ninja should be aware of moderate risk from CVE-2026-33628, a cross-site scripting vulnerability rated CVSS 5.4. Attackers could inject scripts to steal sessions or perform actions as authenticated users. A patch is available and should be applied during regular vulnerability management.
Apply vendor patch. If patching is delayed: implement CSP headers, enable HttpOnly cookies, deploy WAF XSS rules.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB