Skip to main content

Invoice Ninja CVE-2026-33628

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-03-24 https://github.com/invoiceninja/invoiceninja
5.4
CVSS 3.1 · GitHub Advisory
View

Vulnerability 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 <img src=x onerror=alert(document.cookie)> in a line item description field. When the invoice owner, an accountant, or a client views the invoice PDF preview or accesses it via the client portal, the browser executes the malicious JavaScript, stealing the victim's session cookie. The attacker can then use the stolen session token to hijack the victim's account, access sensitive financial data, create fraudulent invoices, or pivot to other systems. Because the payload is stored in the database, it persists and executes every time the invoice is viewed, multiplying the attack surface across all users who access that invoice.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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)
v1 Mar 24, 2026 - 20:45 CVSS 5.4

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

composer invoiceninja/invoiceninja fix: 5.13.4

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

GitHub Advisory PRIMARY 5.4 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch released
Mar 24, 2026 - 20:45 nvd
Patch available
CVE Published
Mar 24, 2026 - 20:40 nvd
MEDIUM 5.4

DescriptionGitHub 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

  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.

Executive ViewAI

Why It Matters

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.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: implement CSP headers, enable HttpOnly cookies, deploy WAF XSS rules.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Data Quality
4 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Affected Products (CPE)GitHub Advisory

pkg:composer/invoiceninja_invoiceninja

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy