Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain low-privilege InvoiceNinja account
-
DeliveryInject XSS payload into invoice terms field via REST API
-
ExploitClient receives invoice through normal business workflow
-
InstallClient opens invoice in portal
-
C2Injected script executes in client browser
-
ExecuteExfiltrate session cookie to attacker server
-
ImpactTake 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
PR:L for required invoice-creator credentials, UI:R for mandatory client interaction, S:C for cross-context session impact; no availability impact applies.
Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).
CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
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
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.
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
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.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-53306
GHSA-84j5-x242-f7h8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB